`net.inet.ipf.fr_running' can be a negative value, which was introduced by

recent ipfilter import.

Approved by:	re (scottl), anholt (mentor)
This commit is contained in:
Jung-uk Kim 2005-07-07 05:59:44 +00:00
parent f8b12dd293
commit c687e6de5b

View File

@ -59,7 +59,7 @@ ipfilter_prestart()
ipfilter_start()
{
echo "Enabling ipfilter."
if [ `sysctl -n net.inet.ipf.fr_running` -eq 0 ]; then
if [ `sysctl -n net.inet.ipf.fr_running` -le 0 ]; then
${ipfilter_program:-/sbin/ipf} -E
fi
${ipfilter_program:-/sbin/ipf} -Fa