mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Fix braino in last commit. Print nothing if ipfw(4) is not present.
This commit is contained in:
parent
90f8e1e33a
commit
fcb3c1b182
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149659
@ -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:]]\+' | \
|
||||
|
Loading…
Reference in New Issue
Block a user