summaryrefslogtreecommitdiffstats
path: root/etc/periodic
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2005-08-31 08:31:14 +0000
committerglebius <glebius@FreeBSD.org>2005-08-31 08:31:14 +0000
commit5facd9e67ab818d1b68268b561817c3cb94371e7 (patch)
tree43b5a3c52b8687280315c60d604b24fd84cf3491 /etc/periodic
parent2fefdd26d1679bc158b4f40bab97635cd641f168 (diff)
downloadFreeBSD-src-5facd9e67ab818d1b68268b561817c3cb94371e7.zip
FreeBSD-src-5facd9e67ab818d1b68268b561817c3cb94371e7.tar.gz
Fix braino in last commit. Print nothing if ipfw(4) is not present.
Diffstat (limited to 'etc/periodic')
-rwxr-xr-xetc/periodic/security/550.ipfwlimit4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/periodic/security/550.ipfwlimit b/etc/periodic/security/550.ipfwlimit
index cba39f6..4e5d89e 100755
--- a/etc/periodic/security/550.ipfwlimit
+++ b/etc/periodic/security/550.ipfwlimit
@@ -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:]]\+' | \
OpenPOWER on IntegriCloud