X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=utils%2Fpb-console;h=9da899fdf7b242f4c47652cd0d753c0691445253;hp=b1c8003ef841d155b81051a9dc091beec83ff7d0;hb=6c7cf0a58b0e4be046b2367c93925e1c4895dd6c;hpb=0134e4d24ea0d09c4daf64ea513099d246186d32 diff --git a/utils/pb-console b/utils/pb-console index b1c8003..9da899f 100644 --- a/utils/pb-console +++ b/utils/pb-console @@ -82,6 +82,7 @@ then if [ "$detach" = 1 ] then $getty -l $0 "$@" & + exit else exec $getty -l $0 "$@" fi @@ -95,9 +96,17 @@ do fi done +verbose_opt= +sysinfo_bin=$(dirname $0)/pb-sysinfo +if [ -x $sysinfo_bin ] && $sysinfo_bin --debug-enabled +then + verbose_opt=--verbose +fi + while : do - $ui + $ui $verbose_opt + reset echo "Exiting petitboot. Type 'exit' to return." $shell done