X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=utils%2Fpb-console;h=1c2bf62784f62f0aff6faae911063cb385dc71d3;hp=e3bc8af14047b5872d8ad7f680e1521f289bd9ca;hb=8c430d0509a2f1f5dc64de308d1c1d2668d2031b;hpb=059262751021d17ffa6d7f474cf25df0f297d23e diff --git a/utils/pb-console b/utils/pb-console index e3bc8af..1c2bf62 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,23 @@ do fi done +# we force local terminals to use the linux termcap definition +case "$(tty)" in +/dev/tty[0-9]*) + export TERM=linux + ;; +esac + +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