blob: f5c2fa446e991413138d7f9c67c36438665fd482 (
plain) (
blame)
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
# PROVIDE: swapd
# REQUIRE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable swapd:
#
# swapd_enable="YES"
#
. /etc/rc.subr
name=swapd
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/swapd
load_rc_config $name
swapd_enable=${swapd_enable:-"NO"}
run_rc_command "$1"
|