Home | History | Annotate | Line # | Download | only in rc.d
swap1 revision 1.1
      1 #!/bin/sh
      2 #
      3 # $NetBSD: swap1,v 1.1 2000/03/10 11:53:24 lukem Exp $
      4 #
      5 
      6 # PROVIDE: localswap
      7 # REQUIRE: ccd
      8 
      9 . /etc/rc.subr
     10 . /etc/rc.conf
     11 
     12 name="swap1"
     13 
     14 #		Add all block-type swap devices; these might be necessary
     15 #		during disk checks.
     16 #
     17 start_cmd='swapctl -A -t blk'
     18 
     19 #		Remove all block-type swap devices
     20 #
     21 stop_cmd="swapctl -U -t blk"
     22 
     23 run_rc_command "$1"
     24