summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2000-11-21 04:21:54 +0000
committerdougb <dougb@FreeBSD.org>2000-11-21 04:21:54 +0000
commit77effa8060b37afac5cafb32e16704979b019057 (patch)
tree94fa1b92681d21f5d71a10dde1ed53142ef0519a /etc/rc
parentfe55c5e105e7c838b777d35d24d60e7e6786489f (diff)
downloadFreeBSD-src-77effa8060b37afac5cafb32e16704979b019057.zip
FreeBSD-src-77effa8060b37afac5cafb32e16704979b019057.tar.gz
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
Diffstat (limited to 'etc/rc')
-rw-r--r--etc/rc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc b/etc/rc
index 51dbc56..946f07f 100644
--- a/etc/rc
+++ b/etc/rc
@@ -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
OpenPOWER on IntegriCloud