summaryrefslogtreecommitdiffstats
path: root/etc/rc.d/swap1
blob: 0582498af9495d61af42847444f48254cff66e9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
#
# $NetBSD: swap1,v 1.4 2000/05/13 08:45:09 lukem Exp $
#

# PROVIDE: localswap
# REQUIRE: disks

. /etc/rc.subr

name="swap1"

#		Add all block-type swap devices; these might be necessary
#		during disk checks.
#
start_cmd='swapctl -A -t blk'

#		Remove all block-type swap devices
#
stop_cmd="swapctl -U -t blk"

load_rc_config swap
run_rc_command "$1"
OpenPOWER on IntegriCloud