diff options
Diffstat (limited to 'etc/rc.update_bogons.sh')
-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 |