1 #!/bin/sh 2 # 3 # $NetBSD: swap1,v 1.6 2001/04/13 22:31:16 msaitoh Exp $ 4 # 5 6 # PROVIDE: localswap 7 # REQUIRE: disks 8 9 . /etc/rc.subr 10 11 name="swap1" 12 start_cmd="swap1_start" 13 14 # Add all block-type swap devices; these might be necessary 15 # during disk checks. 16 # 17 swap1_start() 18 { 19 if ! checkyesno no_swap; then 20 swapctl -A -t blk 21 fi 22 } 23 24 # Remove all block-type swap devices 25 # 26 stop_cmd="swapctl -U -t blk" 27 28 load_rc_config swap 29 run_rc_command "$1" 30