summaryrefslogtreecommitdiffstats
path: root/net-mgmt/rotorouter/files/rotorouter.sh
blob: 6d511432211b455f71a35a6ed68c3dcd5e9f5f93 (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
31
32
33
34
#!/bin/sh
#
# $Id$
#

# PROVIDE: rotorouter
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: FreeBSD shutdown
#
# Add the following lines 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"

OpenPOWER on IntegriCloud