summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_showbogons.php
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 /usr/local/www/diag_showbogons.php
parentd114f3e337129cf7be5ba60ca09cad585be22434 (diff)
downloadpfsense-9dbb93ba9de282429f35d82f052624e79c6e49c8.zip
pfsense-9dbb93ba9de282429f35d82f052624e79c6e49c8.tar.gz
Fix bogons update in GUI without duplicating logic
Diffstat (limited to 'usr/local/www/diag_showbogons.php')
-rw-r--r--usr/local/www/diag_showbogons.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/usr/local/www/diag_showbogons.php b/usr/local/www/diag_showbogons.php
index b8366db..c3ee290 100644
--- a/usr/local/www/diag_showbogons.php
+++ b/usr/local/www/diag_showbogons.php
@@ -37,12 +37,7 @@
require("guiconfig.inc");
if($_POST['Download']) {
- exec("touch /var/run/donotsleep_bogons");
- conf_mount_rw();
- exec("/usr/bin/fetch -q -o /tmp/bogons 'http://files.pfsense.org/bogon-bn-nonagg.txt'");
- if(file_exists("/tmp/bogons"))
- exec("egrep -v '^192.168.0.0/16|^172.16.0.0/12|^10.0.0.0/8' /tmp/bogons > /etc/bogons");
- exec("rm /tmp/bogons");
+ mwexec_bg("/etc/rc.update_bogons.sh now");
}
$bogons = `cat /etc/bogons`;
OpenPOWER on IntegriCloud