discover/grub: Use --id values for default option detection
[petitboot] / utils / pb-console
index 81be2183ca8c2e1f4bef273c0ecbfbda4fc16d62..d846ea7614703dd80f590f45a6f74341889dd773 100644 (file)
@@ -82,14 +82,24 @@ then
        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