X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=utils%2Fpb-console;h=d846ea7614703dd80f590f45a6f74341889dd773;hp=00b25acf44c8d996bafaf178673805766a0f88b0;hb=44e10d816427c001d60eb5e7b3e75b740e5a2823;hpb=6e2d2e78a178a40bcbce903020626c62f74bf046 diff --git a/utils/pb-console b/utils/pb-console index 00b25ac..d846ea7 100644 --- a/utils/pb-console +++ b/utils/pb-console @@ -6,63 +6,100 @@ ui=petitboot-nc shell=sh - +getty=/sbin/getty +use_getty=0 detach=0 usage() { cat >&2 <$console 2>&1 -fi +for f in /etc/environment /etc/locale +do + if [ -e "$f" ] + then + export $(cat "$f") + fi +done -if [ "$detach" = 1 ] -then - ( - pb_loop - ) & -else - pb_loop -fi +while : +do + $ui + reset + echo "Exiting petitboot. Type 'exit' to return." + $shell +done