Do a better job of preserving the value rc is called with

in the face of possible corruption by rc.diskless*.

PR:		misc/21904
Submitted by:	Anton Voronin, anton@urc.ac.ru
This commit is contained in:
Doug Barton 2000-11-21 04:21:54 +00:00
parent c75fa7f70c
commit 4c6250e510

4
etc/rc
View File

@ -46,6 +46,8 @@ stty status '^T'
trap : 2
trap : 3 # shouldn't be needed
bootmode=$1
HOME=/
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
export HOME PATH
@ -101,7 +103,7 @@ esac
swapon -a
case $1 in
case ${bootmode} in
autoboot)
echo Automatic boot in progress...
fsck -p