summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-11-27 22:19:51 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-11-27 22:19:51 +0000
commitb91f8b8264b47d13604fd8ba568054ae9bc8e59b (patch)
tree8e3fefa5bb15f5f188289e0205f64cf318a9bbaa /etc
parente59010af1f76489c94305ac736aff2216e983ffb (diff)
downloadpfsense-b91f8b8264b47d13604fd8ba568054ae9bc8e59b.zip
pfsense-b91f8b8264b47d13604fd8ba568054ae9bc8e59b.tar.gz
Log how many changes are made to bogons file.
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.update_bogons.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh
index 33c3f4e..0191f93 100755
--- a/etc/rc.update_bogons.sh
+++ b/etc/rc.update_bogons.sh
@@ -18,5 +18,6 @@ if [ ! -f /tmp/bogons ]; then
fi
egrep -v "^192.168.0.0/16|^172.16.0.0/12|^10.0.0.0/8" /tmp/bogons > /etc/bogons
/etc/rc.conf_mount_ro
-/sbin/pfctl -t bogons -T replace -f /etc/bogons
+RESULT=`/sbin/pfctl -t bogons -T replace -f /etc/bogons 2>&1`
rm /tmp/bogons
+echo "Bogons file downloaded: $RESULT" | logger
OpenPOWER on IntegriCloud