summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/rc.update_bogons.sh6
-rw-r--r--usr/local/www/wizards/setup_wizard.xml1
2 files changed, 5 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
diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml
index bc09aed..cd3805c 100644
--- a/usr/local/www/wizards/setup_wizard.xml
+++ b/usr/local/www/wizards/setup_wizard.xml
@@ -411,6 +411,7 @@
<description>A reload is now in progress. Please wait. &lt;p&gt; The system will automatically try to access $myurl in 120 seconds. &lt;p&gt; You can click on the icon above to access the site more quickly.
&lt;meta http-equiv="refresh" content="60; url=$myurl" &gt;</description>
<stepafterformdisplay>
+ mwexec_bg("/etc/rc.update_bogons.sh now");
reload_all();
</stepafterformdisplay>
</step>
OpenPOWER on IntegriCloud