3 # Petitboot utility script for running a petitboot UI program
15 pb-console [OPTIONS] -- [ARGS]
18 Start in a detached (background) state.
21 Start a getty (specified by PATH, otherwise $getty),
22 passing additional ARGS to the getty process
25 Use PATH as the exit-to-shell shell
28 Use PATH as the petitboot UI
36 opts=$(getopt --options 'hdg::s:u:' \
37 --long 'help,detach,getty::,shell:,ui:' \
76 if [ "$use_getty" = 1 ]
78 if [ -n "$getty_arg" ]
86 exec $getty -l $0 "$@"
93 echo "Exiting petitboot. Type 'exit' to return."