83eb2c3700
literal name_enable wherever possible, and ${name}_enable when it's not, to prepare for the demise of set_rcvar(). In cases where I had to hand-edit unusual instances also modify formatting slightly to be more uniform (and in some cases, correct). This includes adding some $FreeBSD$ tags, and most importantly moving rcvar= to right after name= so it's clear that one is derived from the other.
29 lines
571 B
Bash
29 lines
571 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# 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"
|