summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc.d/ipfilter4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.d/ipfilter b/etc/rc.d/ipfilter
index f6dab79..eec5a64 100755
--- a/etc/rc.d/ipfilter
+++ b/etc/rc.d/ipfilter
@@ -164,7 +164,9 @@ ipfilter_resync()
case ${OSTYPE} in
FreeBSD)
# Don't resync if ipfilter is not loaded
- [ kldstat -v | grep "IP Filter" > /dev/null 2>&1 ] && return
+ if ! kldstat -v | grep "IP Filter" > /dev/null 2>&1; then
+ return
+ fi
;;
esac
${ipfilter_program:-/sbin/ipf} -y ${ipfilter_flags}
OpenPOWER on IntegriCloud