diff options
author | dougb <dougb@FreeBSD.org> | 2000-11-21 04:21:54 +0000 |
---|---|---|
committer | dougb <dougb@FreeBSD.org> | 2000-11-21 04:21:54 +0000 |
commit | 77effa8060b37afac5cafb32e16704979b019057 (patch) | |
tree | 94fa1b92681d21f5d71a10dde1ed53142ef0519a /etc/rc | |
parent | fe55c5e105e7c838b777d35d24d60e7e6786489f (diff) | |
download | FreeBSD-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/rc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |