summaryrefslogtreecommitdiffstats
path: root/etc/rc.update_bogons.sh
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-20 00:25:00 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-20 00:25:00 -0400
commitb089ad3aa0e3e774c1b5820b8ae2ae978df527b5 (patch)
tree557d6494266d1a0ac93e49786336d770a7c4e34d /etc/rc.update_bogons.sh
parentc54c2d23fd3af8d41a19f621d4819e2f905b1a52 (diff)
downloadpfsense-b089ad3aa0e3e774c1b5820b8ae2ae978df527b5.zip
pfsense-b089ad3aa0e3e774c1b5820b8ae2ae978df527b5.tar.gz
Do not sleep if /var/run/donotsleep_bogons exists. For some reason the first argument is not being passed when ran from webConfigurator
Diffstat (limited to 'etc/rc.update_bogons.sh')
-rwxr-xr-xetc/rc.update_bogons.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh
index 19e2df6..980d047 100755
--- a/etc/rc.update_bogons.sh
+++ b/etc/rc.update_bogons.sh
@@ -11,7 +11,9 @@ value=`od -A n -d -N2 /dev/random | awk '{ print $1 }'`
# Sleep for that time, unless an argument is specified.
if [ "$1" = "" ]; then
- echo "rc.update_bogons.sh is sleeping for $value" | logger
+ if [ ! -f /var/run/donotsleep_bogons ]; then
+ echo "rc.update_bogons.sh is sleeping for $value" | logger
+ fi
sleep $value
fi
OpenPOWER on IntegriCloud