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:
mlaier 2004-06-23 01:42:06 +00:00
parent f42f4268ea
commit c5c0a34dc2

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()