summaryrefslogtreecommitdiffstats
path: root/etc/rc.update_bogons.sh
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2009-06-24 20:22:01 -0400
committerChris Buechler <cmb@pfsense.org>2009-06-24 20:22:01 -0400
commitfc1e7d9fa2a69ba4fb4ff058c1c3aded5ebd8176 (patch)
tree1748564fdf6bda64402da739731249aaef5223af /etc/rc.update_bogons.sh
parent2b9fbe3ab59fa958715e8b2ccb17dcb730f880b2 (diff)
downloadpfsense-fc1e7d9fa2a69ba4fb4ff058c1c3aded5ebd8176.zip
pfsense-fc1e7d9fa2a69ba4fb4ff058c1c3aded5ebd8176.tar.gz
Skip sleep if argument is specified, and update bogons at end of setup wizard.
Diffstat (limited to 'etc/rc.update_bogons.sh')
-rwxr-xr-xetc/rc.update_bogons.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/rc.update_bogons.sh b/etc/rc.update_bogons.sh
index 8c9d6d5..469ef70 100755
--- a/etc/rc.update_bogons.sh
+++ b/etc/rc.update_bogons.sh
@@ -11,8 +11,10 @@ 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.
-sleep $value
+# Sleep for that time, unless an argument is specified.
+if [ ! $1 ]; then
+ sleep $value
+fi
echo "rc.update_bogons.sh is beginning the update cycle." | logger
OpenPOWER on IntegriCloud