summaryrefslogtreecommitdiffstats
path: root/etc/rc.update_bogons.sh
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-20 00:37:44 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-20 00:37:44 -0400
commit2a87b190d68a59b4eb84ad611a223d3aac742066 (patch)
tree8813ba877642f70375b644a9ff1d51d7fcae8c1b /etc/rc.update_bogons.sh
parentb089ad3aa0e3e774c1b5820b8ae2ae978df527b5 (diff)
downloadpfsense-2a87b190d68a59b4eb84ad611a223d3aac742066.zip
pfsense-2a87b190d68a59b4eb84ad611a223d3aac742066.tar.gz
Move sleep to correct location
Diffstat (limited to 'etc/rc.update_bogons.sh')
-rwxr-xr-xetc/rc.update_bogons.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh
index 980d047..332aeb7 100755
--- a/etc/rc.update_bogons.sh
+++ b/etc/rc.update_bogons.sh
@@ -6,15 +6,14 @@
echo "rc.update_bogons.sh is starting up." | logger
-# Grab a random value
-value=`od -A n -d -N2 /dev/random | awk '{ print $1 }'`
-
# Sleep for that time, unless an argument is specified.
if [ "$1" = "" ]; then
if [ ! -f /var/run/donotsleep_bogons ]; 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
- sleep $value
fi
echo "rc.update_bogons.sh is beginning the update cycle." | logger
OpenPOWER on IntegriCloud