diff options
author | brian <brian@FreeBSD.org> | 2001-09-14 11:18:06 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-09-14 11:18:06 +0000 |
commit | 1b6ee68aaf500597e75286b34dfd3200cda9c8b5 (patch) | |
tree | 5525fc493b66cd42d8b79a1181dc4e6d59a15564 /etc/security | |
parent | 1e546898165aa8e2664a924b55c2f6b99815cb7c (diff) | |
download | FreeBSD-src-1b6ee68aaf500597e75286b34dfd3200cda9c8b5.zip FreeBSD-src-1b6ee68aaf500597e75286b34dfd3200cda9c8b5.tar.gz |
Handle the absence of net.inet6.ip6.fw.verbose_limit better
Diffstat (limited to 'etc/security')
-rw-r--r-- | etc/security | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/security b/etc/security index e7ebcb4..199b84b 100644 --- a/etc/security +++ b/etc/security @@ -185,7 +185,7 @@ fi # Show ip6fw rules which have reached the log limit # IP6FW_LOG_LIMIT=`sysctl -n net.inet6.ip6.fw.verbose_limit 2> /dev/null` -if [ $? -eq 0 -a "${IP6FW_LOG_LIMIT}" -ne 0 ]; then +if [ $? -eq 0 ] && [ "${IP6FW_LOG_LIMIT}" -ne 0 ]; then ip6fw -a l | grep " log " | perl -n -e \ '/^\d+\s+(\d+)/; print if ($1 >= '$IP6FW_LOG_LIMIT')' > ${TMP} if [ -s "${TMP}" ]; then |