aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-09-07 21:20:25 +0000
committerBill Nottingham <notting@redhat.com>1999-09-07 21:20:25 +0000
commitb6ef8734e7186130fd061398246d8a191e33979d (patch)
treec3e9cae3e25915a2a60fb954e3aeae11eba00cfc /rc.d
parent86b9e80bfb4d181a88f6555cf7d34b2901aa053a (diff)
downloadinitscripts-b6ef8734e7186130fd061398246d8a191e33979d.tar
initscripts-b6ef8734e7186130fd061398246d8a191e33979d.tar.gz
initscripts-b6ef8734e7186130fd061398246d8a191e33979d.tar.bz2
initscripts-b6ef8734e7186130fd061398246d8a191e33979d.tar.xz
initscripts-b6ef8734e7186130fd061398246d8a191e33979d.zip
allow turning off of 'press 'i' prompt'
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d/rc.sysinit14
1 files changed, 9 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