Fix braino in last commit. Print nothing if ipfw(4) is not present.

This commit is contained in:
Gleb Smirnoff 2005-08-31 08:31:14 +00:00
parent 90f8e1e33a
commit fcb3c1b182
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149659

View File

@ -44,8 +44,8 @@ case "$daily_status_security_ipfwlimit_enable" in
[Yy][Ee][Ss])
TMP=`mktemp -t security`
IPFW_LOG_LIMIT=`sysctl -n net.inet.ip.fw.verbose_limit 2> /dev/null`
if [ $? -eq 0 ]; then
IPFW_LOG_LIMIT=0
if [ $? -ne 0 ]; then
exit 0
fi
ipfw -a list | grep " log " | \
grep '^[[:digit:]]\+[[:space:]]\+[[:digit:]]\+' | \