diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2009-08-20 16:19:27 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2009-08-20 16:19:36 -0400 |
commit | d114f3e337129cf7be5ba60ca09cad585be22434 (patch) | |
tree | d23e62b4200eb63814a44ed24d5b6d345dcd5c0a /usr/local/www | |
parent | 53ce59b3e2f0fdd8f3065012531fbab9391e8ac8 (diff) | |
download | pfsense-d114f3e337129cf7be5ba60ca09cad585be22434.zip pfsense-d114f3e337129cf7be5ba60ca09cad585be22434.tar.gz |
Duplicate logic to download bogons data. For some reason the shell script is ignoring the first argument AND the file that was created to prevent it from sleeping. Life is too short to chase stupid stuff -- if you don't like it spend your own time to figure out the issue.
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/diag_showbogons.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/local/www/diag_showbogons.php b/usr/local/www/diag_showbogons.php index 5ee9055..b8366db 100644 --- a/usr/local/www/diag_showbogons.php +++ b/usr/local/www/diag_showbogons.php @@ -38,8 +38,11 @@ require("guiconfig.inc"); if($_POST['Download']) { exec("touch /var/run/donotsleep_bogons"); - exec("/etc/rc.update_bogons.sh donotsleep"); - exec("rm /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"); } $bogons = `cat /etc/bogons`; |