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" ]
87 exec $getty -l $0 "$@"
91 for f in /etc/environment /etc/locale
99 # we force local terminals to use the linux termcap definition
107 sysinfo_bin=$(dirname $0)/pb-sysinfo
108 if [ -x $sysinfo_bin ] && $sysinfo_bin --debug-enabled
110 verbose_opt=--verbose
117 echo "Exiting petitboot. Type 'exit' to return."