summaryrefslogtreecommitdiff
path: root/net-mgmt/rotorouter/files/rotorouter.in
blob: cc6c7ef3d166f6d509aa3d68782cee8961b64486 (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
#!/bin/sh

# PROVIDE: rotorouter
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf[.local] to enable rotorouter:
#
#   rotorouter_enable="YES"
#
# See rotorouter(8) for flags.
#

. /etc/rc.subr

name=rotorouter
rcvar=rotorouter_enable

command=%%PREFIX%%/sbin/${name}
command_args='&'

load_rc_config $name

: ${rotorouter_enable-"NO"}
: ${rotorouter_flags-"-h %%PREFIX%%/etc/rotorouter.conf"}

run_rc_command "$1"