summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_showbogons.php
diff options
context:
space:
mode:
Diffstat (limited to 'usr/local/www/diag_showbogons.php')
-rw-r--r--usr/local/www/diag_showbogons.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/usr/local/www/diag_showbogons.php b/usr/local/www/diag_showbogons.php
index 541e8e0..690e4de 100644
--- a/usr/local/www/diag_showbogons.php
+++ b/usr/local/www/diag_showbogons.php
@@ -38,6 +38,19 @@ require("guiconfig.inc");
if($_POST['Download']) {
mwexec_bg("/etc/rc.update_bogons.sh now");
+ $maxtimetowait = 0;
+ $loading = true;
+ while($loading == true) {
+ $isrunning = `ps awwwux | grep -v grep | grep bogons`;
+ if($isrunning == "")
+ $loading = false;
+ $maxtimetowait++;
+ if($maxtimetowait > 89)
+ $loading = false;
+ sleep(1);
+ }
+ if($maxtimetowait < 90)
+ $savemsg = "The bogons database has been updated.";
}
$bogons = `cat /etc/bogons`;
OpenPOWER on IntegriCloud