summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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