]> git.ozlabs.org Git - petitboot/commitdiff
utils/pb-console: Exit after running getty in detached state
authorJeremy Kerr <jk@ozlabs.org>
Fri, 22 Nov 2013 01:36:58 +0000 (09:36 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 22 Nov 2013 02:45:54 +0000 (10:45 +0800)
... otherwise we'll try and bring the UI up on the current tty too.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
utils/pb-console

index e3bc8af14047b5872d8ad7f680e1521f289bd9ca..d846ea7614703dd80f590f45a6f74341889dd773 100644 (file)
@@ -82,6 +82,7 @@ then
        if [ "$detach" = 1 ]
        then
                $getty -l $0 "$@" &
+               exit
        else
                exec $getty -l $0 "$@"
        fi