if [ "$detach" = 1 ]
then
$getty -l $0 "$@" &
+ exit
else
exec $getty -l $0 "$@"
fi
fi
+for f in /etc/environment /etc/locale
+do
+ if [ -e "$f" ]
+ then
+ export $(cat "$f")
+ fi
+done
+
while :
do
$ui
+ reset
echo "Exiting petitboot. Type 'exit' to return."
$shell
done