summaryrefslogtreecommitdiffstats
path: root/etc/rc.update_bogons.sh
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2009-08-20 17:09:11 -0400
committerChris Buechler <cmb@pfsense.org>2009-08-20 17:09:11 -0400
commit6c0fb3040d334fc479133fa5ac5a1815dd31c646 (patch)
treef1256a188d091fbb57d71a62d802e45f235c629a /etc/rc.update_bogons.sh
parent9aca6e5bf63b61bb29c8cc18c962a7d0e79e311d (diff)
downloadpfsense-6c0fb3040d334fc479133fa5ac5a1815dd31c646.zip
pfsense-6c0fb3040d334fc479133fa5ac5a1815dd31c646.tar.gz
don't log sleep if not sleeping
Diffstat (limited to 'etc/rc.update_bogons.sh')
-rwxr-xr-xetc/rc.update_bogons.sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh
index 35092d3..b89b24f 100755
--- a/etc/rc.update_bogons.sh
+++ b/etc/rc.update_bogons.sh
@@ -6,13 +6,12 @@
echo "rc.update_bogons.sh is starting up." | logger
-# Grab a random value
-value=`od -A n -d -N2 /dev/random | awk '{ print $1 }'`
-
-echo "rc.update_bogons.sh is sleeping for $value" | logger
-
# Sleep for that time.
if [ ! $1 ]; then
+ # Grab a random value
+ value=`od -A n -d -N2 /dev/random | awk '{ print $1 }'`
+
+ echo "rc.update_bogons.sh is sleeping for $value" | logger
sleep $value
fi
OpenPOWER on IntegriCloud