Swap order of ruleset load and enabling pf to work around a problem on altq

startup. Moreover, this is the "more logic" order.
This commit is contained in:
Max Laier 2004-06-23 01:42:06 +00:00
parent 8ee2ac9ef3
commit b78518bb34
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=130954

View File

@ -47,14 +47,14 @@ pf_prestart()
pf_start()
{
echo "Enabling pf."
if ! ${pf_program:-/sbin/pfctl} -si | grep -q "Enabled" ; then
${pf_program:-/sbin/pfctl} -e
fi
${pf_program:-/sbin/pfctl} -Fa > /dev/null 2>&1
if [ -r "${pf_rules}" ]; then
${pf_program:-/sbin/pfctl} \
-f "${pf_rules}" ${pf_flags}
fi
if ! ${pf_program:-/sbin/pfctl} -si | grep -q "Enabled" ; then
${pf_program:-/sbin/pfctl} -e
fi
}
pf_stop()