diff options
author | Martin Fuchs <martin.fuchs@trendchiller.com> | 2011-10-04 15:56:17 +0200 |
---|---|---|
committer | Martin Fuchs <martin.fuchs@trendchiller.com> | 2011-10-04 15:56:17 +0200 |
commit | 221cb3e812db32a687b3f381bb74e9df61311872 (patch) | |
tree | 65a78497c87b43eaa18c28830dc957ce195ebdc4 /config/ipblocklist/8/ipblocklist.tmp | |
parent | 42b72a5b9995b92c6d6b5e8217484f3d8cd4559b (diff) | |
parent | e178ef94bf3930b9a9bc5e0f563bc0412ae1cee6 (diff) | |
download | pfsense-packages-221cb3e812db32a687b3f381bb74e9df61311872.tar.gz pfsense-packages-221cb3e812db32a687b3f381bb74e9df61311872.tar.bz2 pfsense-packages-221cb3e812db32a687b3f381bb74e9df61311872.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'config/ipblocklist/8/ipblocklist.tmp')
-rwxr-xr-x | config/ipblocklist/8/ipblocklist.tmp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/config/ipblocklist/8/ipblocklist.tmp b/config/ipblocklist/8/ipblocklist.tmp index ffbfdc57..9291a468 100755 --- a/config/ipblocklist/8/ipblocklist.tmp +++ b/config/ipblocklist/8/ipblocklist.tmp @@ -56,13 +56,16 @@ if (count($_POST)>0) { //Now clear ipfw, and process each list to ipfw commands exec("/bin/sh convert-execute.sh"); + + //Attempt to create a backup of user lists + mwexec("cp /usr/local/www/packages/ipblocklist/lists.txt /usr/local/www/packages/ipblocklist_bkup/lists.txt"); } else { //echo "disabled"; $config['installedpackages']['ipblocklist_settings']['config'][0]['enable'] = 0; //Clear Lists - mwexec("ipfw -f flush"); + //mwexec("ipfw -f flush"); mwexec("pfctl -t ipblocklist -T kill"); mwexec("rm -R /usr/local/www/packages/ipblocklist/lists"); mwexec("sed -i -e '/ipblocklist/d' /tmp/rules.debug"); |