diff options
author | Maxime Henrion <mux@FreeBSD.org> | 2003-10-03 11:57:43 +0000 |
---|---|---|
committer | Maxime Henrion <mux@FreeBSD.org> | 2003-10-03 11:57:43 +0000 |
commit | c7b33a84a4fd68e479501dfcc923e068b9fc0657 (patch) | |
tree | f1378c88f45cbf1fde4eed3caa30b66b8de766c2 /etc | |
parent | b75bead1f2299e8ad6c26eb8998481a6bdaa79ef (diff) | |
download | src-c7b33a84a4fd68e479501dfcc923e068b9fc0657.tar.gz src-c7b33a84a4fd68e479501dfcc923e068b9fc0657.zip |
Fix bogon in ipfilter_resync() introduced in my last commit.
Spotted by: Gennady Proskurin <gpr@nvnpp.vrn.ru>
Notes
Notes:
svn path=/head/; revision=120686
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.d/ipfilter | 4 |
1 files changed, 3 insertions, 1 deletions
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} |