summaryrefslogtreecommitdiffstats
path: root/etc/rc.update_bogons.sh
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-05-02 18:49:16 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-05-02 18:49:16 +0000
commit9c9b18330c25d740640f55588263f78af40185c1 (patch)
treea7d760901c0363d2d3e4b03cf16007be85ae3b0a /etc/rc.update_bogons.sh
parentb5158c608b19b8a5e534a73a533224ba913dff0f (diff)
downloadpfsense-9c9b18330c25d740640f55588263f78af40185c1.zip
pfsense-9c9b18330c25d740640f55588263f78af40185c1.tar.gz
Echo out to system logs exactly what is going on during bogons update
Diffstat (limited to 'etc/rc.update_bogons.sh')
-rwxr-xr-xetc/rc.update_bogons.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh
index b787187..71e592e 100755
--- a/etc/rc.update_bogons.sh
+++ b/etc/rc.update_bogons.sh
@@ -4,12 +4,18 @@
# Part of the pfSense project
# www.pfsense.com
+echo "rc.update_bogons.sh is starting up." | logger
+
# Grab a random value
value=`od -A n -d -N2 /dev/random | awk '{print int(($1/65536)*8000)}'`
+echo "rc.update_bogons.sh is sleeping for $value" | logger
+
# Sleep for that time.
sleep $value
+echo "rc.update_bogons.sh is beginning the update cycle." | logger
+
/etc/rc.conf_mount_rw
/usr/bin/fetch -q -o /tmp/bogons "http://files.pfsense.org/bogon-bn-nonagg.txt"
if [ ! -f /tmp/bogons ]; then
OpenPOWER on IntegriCloud