3 # $NetBSD: swap1,v 1.8 2002/03/24 15:52:41 lukem Exp $
4 # $FreeBSD: src/etc/rc.d/swap1,v 1.3 2002/09/06 16:18:05 gordon Exp $
5 # $DragonFly: src/etc/rc.d/swap1,v 1.5 2005/11/19 22:47:32 swildner Exp $
15 start_cmd
='df_swap1_start'
18 # Add all block-type swap devices; these might be necessary
23 if ! checkyesno no_swap
; then
28 # Remove all block-type swap devices
32 if checkyesno swapoff ||
[ -n "$rc_force" ]; then
33 echo "Removing block-type swap devices"
40 if [ `${SYSCTL_N} vm.swap_enabled` = 0 ]; then
41 return ${RC_CONFIGURED}
43 swapon
-a && return ${RC_CONFIGURED}