Browse Source

With recent changes to swapctl(8), replace the invocation of swapon

with two swapctl invocations.
Swap on block devices is enabled before fscking filesystems, swap on
files is enabled after all filesystems (including remote) are mounted.
OPENBSD_3_0
miod 23 years ago
parent
commit
2384f28696
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/etc/rc

+ 4
- 2
src/etc/rc View File

@ -1,4 +1,4 @@
# $OpenBSD: rc,v 1.171 2001/05/30 02:11:09 deraadt Exp $
# $OpenBSD: rc,v 1.172 2001/06/02 03:06:29 miod Exp $
# System startup script run by init on autoboot # System startup script run by init on autoboot
# or after single-user. # or after single-user.
@ -64,7 +64,7 @@ for dev in 0 1 2 3; do
fi fi
done done
swapon -a
swapctl -A -t blk
if [ -e /fastboot ]; then if [ -e /fastboot ]; then
echo "Fast boot: skipping disk checks." echo "Fast boot: skipping disk checks."
@ -268,6 +268,8 @@ echo '.'
mount -a -t nfs mount -a -t nfs
swapctl -A -t noblk
# /var/crash should be a directory or a symbolic link # /var/crash should be a directory or a symbolic link
# to the crash directory if core dumps are to be saved. # to the crash directory if core dumps are to be saved.
if [ -d /var/crash ]; then if [ -d /var/crash ]; then


Loading…
Cancel
Save