1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

The check for $ippool_rules in start_cmd is tautological.

Reported by:	hrs@
MFC after:	13 days
X-MFC with:	r345400
This commit is contained in:
Cy Schubert 2019-03-23 04:32:10 +00:00
parent 8af4cc4d5a
commit 817c58e3ac
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=345437

View File

@ -14,19 +14,16 @@ name="ippool"
desc="user interface to the IPFilter pools"
rcvar="ippool_enable"
load_rc_config $name
start_cmd="ippool_start"
start_precmd="ippool_start_precmd"
stop_cmd="${ippool_program} -F"
reload_cmd="ippool_reload"
extra_commands="reload"
required_files="${ippool_rules}"
required_modules="ipl:ipfilter"
ippool_start()
ippool_start_precmd()
{
if [ -r "${ippool_rules}" ]; then
echo "Loading IP Pools."
${ippool_program} -f ${ippool_rules} ${ippool_flags}
fi
rc_flags="-f ${ippool_rules} ${rc_flags}"
}
ippool_reload()