aboutsummaryrefslogtreecommitdiff
path: root/net/smcroute/files/smcroute.in
blob: a3f72ec38bf4be8ce7dead05afc00172f67ef9a5 (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
#!/bin/sh

# PROVIDE: smcroute
# REQUIRE: netif routing
# KEYWORD: nojail

#
# Add the following to /etc/rc.conf[.local] to enable this service
#
# smcroute_enable="YES"
#

. /etc/rc.subr

name="smcroute"
rcvar="${name}_enable"
command="%%PREFIX%%/sbin/${name}"
start_precmd="${name}_precmd"

smcroute_precmd()
{

	rc_flags="$rc_flags -d"
}

load_rc_config $name

: ${smcroute_enable="NO"}
: ${smcroute_flags=""}

run_rc_command "$1"