X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=utils%2Fpb-console;h=ab5eaaa41e3e22b49a5853ae2ca53e8c7cfe7441;hb=cd95d81c16bd7f312214e2800bf0600f96f9307c;hp=ef9ed0f61d455a8fc85757611d0dab374fa8e90c;hpb=f110c98b582be12c9d4ac4a13a7bf5aff2b7dd57;p=petitboot diff --git a/utils/pb-console b/utils/pb-console index ef9ed0f..ab5eaaa 100644 --- a/utils/pb-console +++ b/utils/pb-console @@ -94,7 +94,7 @@ then if [ "$detach" = 1 ] then - $getty $login_arg "$@" & + setsid -c $getty $login_arg "$@" & exit else exec $getty $login_arg "$@" @@ -134,11 +134,12 @@ fi # show particularly important messages dmesg -n 1 +trap '' SIGINT +trap 'reset; echo "SIGTERM received, booting..."; sleep 2' SIGTERM + while : do $ui $verbose_opt reset - echo "Exiting petitboot. Type 'exit' to return." - echo "You may run 'pb-sos' to gather diagnostic data" - $shell + $shell -m done