blob: c0bb885ef1d55322b02769c8a541160afd405e6d (
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
|
#!/bin/sh
# $FreeBSD$
#
# 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"
|