aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xrc.d/rc.sysinit14
-rw-r--r--sysconfig.txt2
-rw-r--r--sysconfig/init2
3 files changed, 13 insertions, 5 deletions
diff --git a/rc.d/rc.sysinit b/rc.d/rc.sysinit
index 657f815a..92d61f3d 100755
--- a/rc.d/rc.sysinit
+++ b/rc.d/rc.sysinit
@@ -31,9 +31,11 @@ echo -en "\t\t\tWelcome to "
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
+if [ "$PROMPT" != "no" ]; then
+ echo -en "\t\tPress 'I' to enter interactive startup."
+ echo
+ sleep 1
+fi
# Fix console loglevel
/sbin/loglevel $LOGLEVEL
@@ -386,7 +388,7 @@ action "Mounting local filesystems" mount -a -t nonfs,smbfs,ncpfs,proc
if [ -f /.unconfigured ]; then
if [ -x /usr/sbin/rootconfig ]; then
/usr/sbin/rootconfig
- else if [ -x /usr/bin/passwd ]; then
+ elif [ -x /usr/bin/passwd ]; then
/usr/bin/passwd root
fi
if [ -x /usr/sbin/netconfig ]; then
@@ -504,5 +506,7 @@ EOF
dmesg > /var/log/dmesg
killall -TERM getkey >/dev/null 2>&1
} &
-/sbin/getkey i && touch /tmp/confirm
+if [ "$PROMPT" != "no" ]; then
+ /sbin/getkey i && touch /tmp/confirm
+fi
wait
diff --git a/sysconfig.txt b/sysconfig.txt
index ad87a888..36a8f0e3 100644
--- a/sysconfig.txt
+++ b/sysconfig.txt
@@ -53,6 +53,8 @@ Files in /etc/sysconfig
ANSI sequences output by echo -e.
MAGIC_SYSRQ=yes|no
Set to 'no' to disable the magic sysrq key.
+ PROMPT=yes|no
+ Set to 'no' to disable the key check for interactive mode.
/etc/sysconfig/keyboard:
diff --git a/sysconfig/init b/sysconfig/init
index a06707d4..8a2d68f5 100644
--- a/sysconfig/init
+++ b/sysconfig/init
@@ -19,3 +19,5 @@ SETCOLOR_NORMAL="echo -en \\033[0;39m"
LOGLEVEL=1
# Set to something other than 'no' to turn on magic sysrq keys...
MAGIC_SYSRQ=no
+# Set to anything other than 'no' to allow hotkey interactive startup...
+PROMPT=yes