summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-05-02 18:49:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-05-02 18:49:10 +0000
commit5c9b6ccb61636f6cec88386a2dc9c955c4ca2442 (patch)
tree23bcf5a870c00fcc0afa35b49c57d3cd38f35c30 /etc
parentf877a9e6c31e881e3745a3418492eea4e69f2699 (diff)
downloadpfsense-5c9b6ccb61636f6cec88386a2dc9c955c4ca2442.zip
pfsense-5c9b6ccb61636f6cec88386a2dc9c955c4ca2442.tar.gz
Echo out to system logs exactly what is going on during bogons update
Diffstat (limited to 'etc')
-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