diff options
-rw-r--r-- | etc/security | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/security b/etc/security index f56073f..ac70d0c 100644 --- a/etc/security +++ b/etc/security @@ -78,10 +78,10 @@ fi # Show ipfw rules which have reached the log limit # IPFW_LOG_LIMIT=`sysctl -n net.inet.ip.fw.verbose_limit 2> /dev/null` -if [ $? -eq 0 -a ${IPFW_LOG_LIMIT} -ne 0 ]; then +if [ $? -eq 0 -a "${IPFW_LOG_LIMIT}" -ne 0 ]; then ipfw -a l | grep " log " | perl -n -e \ '/^\d+\s+(\d+)/; print if ($1 >= '$IPFW_LOG_LIMIT')' > ${TMP} - if [ -s ${TMP} ]; then + if [ -s "${TMP}" ]; then separator echo "ipfw log limit reached:" cat ${TMP} |