diff options
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 |