diff options
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/rc.sysinit | 14 |
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 |