aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/pftabled/files/pftabled.in
blob: 0f1e25320f709449cde19d6cdf365b07bd4f70fc (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
#!/bin/sh

# PROVIDE: pftabled
# REQUIRE: NETWORKING SERVERS
# BEFORE: DAEMON
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable pftabled:
# pftabled_enable (bool):	Set it to "YES" to enable pftabled.
#				Default is "NO".
# pftabled_flags (flags):	Set flags to alter default behaviour of pftabled.
# 				Consult with the man page for more info.
#

. /etc/rc.subr

name="pftabled"
rcvar=pftabled_enable

load_rc_config $name

: ${pftabled_enable="NO"}
: ${pftabled_flags="-d"}

command="%%PREFIX%%/sbin/${name}"

run_rc_command "$1"