diff options
author | Bill Nottingham <notting@redhat.com> | 1999-09-02 00:57:26 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-09-02 00:57:26 +0000 |
commit | e6d28cc5aaeabd53ed652eec63c2c22bb3f7e97c (patch) | |
tree | 519a94d0646687a868681da20d91e311c54f023f /rc.d | |
parent | acd1b3af175819b9209cde675deb4a88af32e506 (diff) | |
download | initscripts-e6d28cc5aaeabd53ed652eec63c2c22bb3f7e97c.tar initscripts-e6d28cc5aaeabd53ed652eec63c2c22bb3f7e97c.tar.gz initscripts-e6d28cc5aaeabd53ed652eec63c2c22bb3f7e97c.tar.bz2 initscripts-e6d28cc5aaeabd53ed652eec63c2c22bb3f7e97c.tar.xz initscripts-e6d28cc5aaeabd53ed652eec63c2c22bb3f7e97c.zip |
add interactive prompt to make Cristian & Preston happy
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/functions | 3 | ||||
-rwxr-xr-x | rc.d/rc | 5 | ||||
-rwxr-xr-x | rc.d/rc.sysinit | 16 |
3 files changed, 23 insertions, 1 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index eca7f56f..54e3a556 100755 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -230,6 +230,7 @@ echo_success() { echo -n "OK" [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL echo -n " ]" + echo -ne "\r" return 0 } @@ -240,6 +241,7 @@ echo_failure() { echo -n "FAILED" [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL echo -n "]" + echo -ne "\r" return 1 } @@ -250,6 +252,7 @@ echo_passed() { echo -n "PASSED" [ "$BOOTUP" = "color" ] && $SETCOLOR_NORMAL echo -n "]" + echo -ne "\r" return 1 } @@ -21,10 +21,13 @@ export runlevel previous # See if we want to be in user confirmation mode if [ "$previous" = "N" ]; then - if grep -i confirm /proc/cmdline >/dev/null ; then + if grep -i confirm /proc/cmdline >/dev/null || [ -f /tmp/confirm ] ; then + rm -f /tmp/confirm CONFIRM=yes + echo "Entering interactive startup" else CONFIRM= + echo "Entering non-interactive startup" fi fi diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit index 1b323314..7295b3a2 100755 --- a/rc.d/rc.sysinit +++ b/rc.d/rc.sysinit @@ -25,6 +25,16 @@ fi # Source functions . /etc/rc.d/init.d/functions +# Print a banner. ;) +echo -en "\t\t\tWelcome to " +[ "$BOOTUP" != "serial" ] && echo -en "\\033[1;31m +echo -en "Red Hat" +[ "$BOOTUP" != "serial" ] && echo -en "\\033[0;39m" +echo " Linux" +echo -en "\t\tPress 'I' to enter interactive startup." +echo +sleep 2 + # Fix console loglevel /sbin/loglevel $LOGLEVEL @@ -367,6 +377,8 @@ if [ ! -f /fastboot ]; then fi fi + +{ # Mount all other filesystems (except for NFS and /proc, which is already # mounted). Contrary to standard usage, # filesystems are NOT unmounted in single user mode. @@ -453,3 +465,7 @@ EOF # Now that we have all of our basic modules loaded and the kernel going, # let's dump the syslog ring somewhere so we can find it later dmesg > /var/log/dmesg +killall -TERM getkey >/dev/null 2>&1 +} & +/sbin/getkey i && touch /tmp/confirm +wait |