]> git.ozlabs.org Git - petitboot/blobdiff - utils/pb-console
utils/pb-console: reset after UI exit
[petitboot] / utils / pb-console
index 81be2183ca8c2e1f4bef273c0ecbfbda4fc16d62..e3bc8af14047b5872d8ad7f680e1521f289bd9ca 100644 (file)
@@ -87,9 +87,18 @@ then
        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