1 #!/bin/sh 2 # 3 # $NetBSD: swap1,v 1.5 2000/07/17 12:27:04 lukem Exp $ 4 # 5 6 # PROVIDE: localswap 7 # REQUIRE: disks 8 9 . /etc/rc.subr 10 11 name="swap1" 12 13 # Add all block-type swap devices; these might be necessary 14 # during disk checks. 15 # 16 start_cmd='swapctl -A -t blk' 17 18 # Remove all block-type swap devices 19 # 20 stop_cmd="swapctl -U -t blk" 21 22 load_rc_config swap 23 run_rc_command "$1" 24