diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-05-02 18:49:10 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-05-02 18:49:10 +0000 |
commit | 5c9b6ccb61636f6cec88386a2dc9c955c4ca2442 (patch) | |
tree | 23bcf5a870c00fcc0afa35b49c57d3cd38f35c30 /etc | |
parent | f877a9e6c31e881e3745a3418492eea4e69f2699 (diff) | |
download | pfsense-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-x | etc/rc.update_bogons.sh | 6 |
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 |