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