summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-05-15 21:28:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-05-15 21:28:44 +0000
commit233279833ad2d2eaaed849bfcf5589c04799082c (patch)
tree2d849464df1bfb147340a8e4dbad82aa4ff63a41
parent702c312cb2831ffe553edec88356e10045e393dc (diff)
swapon -a before fsck is run
-rw-r--r--etc/rc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index 294bd6dc02d..9743922bf93 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,4 +1,4 @@
-# $OpenBSD: rc,v 1.169 2001/05/03 21:56:57 deraadt Exp $
+# $OpenBSD: rc,v 1.170 2001/05/15 21:28:43 deraadt Exp $
# System startup script run by init on autoboot
# or after single-user.
@@ -64,6 +64,8 @@ for dev in 0 1 2 3; do
fi
done
+swapon -a
+
if [ -e /fastboot ]; then
echo "Fast boot: skipping disk checks."
elif [ $1x = autobootx ]; then
@@ -102,8 +104,6 @@ fi
trap "echo 'Boot interrupted.'; exit 1" 3
-swapon -a
-
umount -a >/dev/null 2>&1
mount -a -t nonfs
mount -uw / # root on nfs requires this, others aren't hurt