blob: ed731ccad5473b50641f69951a89bef012994cfe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/bin/sh
# PROVIDE: spoofer
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable spoofer:
#
# spoofer_enable="YES"
#
. /etc/rc.subr
name=spoofer
rcvar=spoofer_enable
command="%%PREFIX%%/bin/spoofer-scheduler"
command_args="-D"
load_rc_config $name
: ${spoofer_enable="NO"}
: ${spoofer_flags=""}
spoofer_stop()
{
%%PREFIX%%/bin/spoofer-cli shutdown
}
run_rc_command "$1"
|