diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-06-02 03:06:30 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-06-02 03:06:30 +0000 |
commit | 30dcb733964c483b0c90a75525de528698110046 (patch) | |
tree | 86734c351d90c9dfee59550d92e2f4bbd01e6718 /etc/rc | |
parent | b15393941b2237f8436d1769171bfbb24aeaab31 (diff) |
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.
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 # or after single-user. @@ -64,7 +64,7 @@ for dev in 0 1 2 3; do fi done -swapon -a +swapctl -A -t blk if [ -e /fastboot ]; then echo "Fast boot: skipping disk checks." @@ -268,6 +268,8 @@ echo '.' mount -a -t nfs +swapctl -A -t noblk + # /var/crash should be a directory or a symbolic link # to the crash directory if core dumps are to be saved. if [ -d /var/crash ]; then |