blob: f28e61b5227ebbf7f10355d313f66f79a365671f (
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
24
25
26
27
28
29
30
31
32
33
34
|
#!/bin/sh
#
# $Id$
#
# PROVIDE: rotorouter
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
#
# Add the following line to /etc/rc.conf to enable rotorouter:
#
# rotorouter_enable="YES"
#
# See rotorouter(8) for flags.
#
. %%RC_SUBR%%
name=rotorouter
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/${name}
# set defaults
rotorouter_enable=${rotorouter_enable:-"NO"}
rotorouter_flags="${rotorouter_flags:--h %%PREFIX%%/etc/rotorouter.conf}"
rotorouter_flags="${rotorouter_flags} &"
load_rc_config $name
run_rc_command "$1"
|