summaryrefslogtreecommitdiffstats
path: root/etc/rc.update_bogons.sh
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2009-08-20 17:21:43 -0400
committerChris Buechler <cmb@pfsense.org>2009-08-20 17:21:43 -0400
commit9dbb93ba9de282429f35d82f052624e79c6e49c8 (patch)
tree7347495938d9836541b696a1f814354d8f527dde /etc/rc.update_bogons.sh
parentd114f3e337129cf7be5ba60ca09cad585be22434 (diff)
downloadpfsense-9dbb93ba9de282429f35d82f052624e79c6e49c8.zip
pfsense-9dbb93ba9de282429f35d82f052624e79c6e49c8.tar.gz
Fix bogons update in GUI without duplicating logic
Diffstat (limited to 'etc/rc.update_bogons.sh')
-rwxr-xr-xetc/rc.update_bogons.sh11
1 files changed, 5 insertions, 6 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh
index 332aeb7..d07cfb9 100755
--- a/etc/rc.update_bogons.sh
+++ b/etc/rc.update_bogons.sh
@@ -7,13 +7,12 @@
echo "rc.update_bogons.sh is starting up." | logger
# 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
+ # 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
echo "rc.update_bogons.sh is beginning the update cycle." | logger
OpenPOWER on IntegriCloud