search for: during_firstboot

Displaying 1 result from an estimated 1 matches for "during_firstboot".

2009 Jul 14
0
[PATCH node] Changes the exit prompt based on whether it's firstboot of cmdline.
...78254..105f7bc 100755 --- a/scripts/ovirt-config-setup +++ b/scripts/ovirt-config-setup @@ -10,7 +10,23 @@ CONFIG_DIR=/etc/ovirt-config-setup.d # special options, all others execute the symlinked script in CONFIG_DIR DEBUG_SHELL="Shell" -CONTINUE="Continue Stateless Boot" + +during_firstboot=true +for tty in $(ps -ef | awk '{ printf $2"::"$6" " '}); do + if [[ "$tty" =~ "$$::" ]]; then + len=${#$} + the_tty=${tty:len+2} + if [ "$the_tty" != "?" ]; then + during_firstboot=false + fi + fi +done + +if $during_fi...