X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=utils%2Fpb-console;h=b1c8003ef841d155b81051a9dc091beec83ff7d0;hp=00b25acf44c8d996bafaf178673805766a0f88b0;hb=1b646fb733ef99b1dc1862276ae3595bdeaf355b;hpb=6e2d2e78a178a40bcbce903020626c62f74bf046 diff --git a/utils/pb-console b/utils/pb-console index 00b25ac..b1c8003 100644 --- a/utils/pb-console +++ b/utils/pb-console @@ -6,63 +6,98 @@ 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 + echo "Exiting petitboot. Type 'exit' to return." + $shell +done