From 5c9b6ccb61636f6cec88386a2dc9c955c4ca2442 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 2 May 2008 18:49:10 +0000 Subject: Echo out to system logs exactly what is going on during bogons update --- etc/rc.update_bogons.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'etc') 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 -- cgit v1.1