diff --git a/etc/rc.d/ipfilter b/etc/rc.d/ipfilter index f6dab791d760..eec5a64542e7 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}