X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=utils%2Fpb-console;h=1c2bf62784f62f0aff6faae911063cb385dc71d3;hb=1860aac29624b1cb292a7ca549dc063bcd3f9bb6;hp=d846ea7614703dd80f590f45a6f74341889dd773;hpb=fc95dc4ecc55c3dd4e429c6b5530ae2672d7ca1f;p=petitboot diff --git a/utils/pb-console b/utils/pb-console index d846ea7..1c2bf62 100644 --- a/utils/pb-console +++ b/utils/pb-console @@ -96,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