diff options
author | robiscool <robrob2626@yahoo.com> | 2009-12-13 19:11:48 -0800 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2009-12-13 19:11:48 -0800 |
commit | 1b105aedad724692d68e2f60062981452df662f5 (patch) | |
tree | d68616c04b67ae5b96916d1360884a48d5e115ac /config/snort-dev/snort.inc | |
parent | e35913552efea60f71bf2c3b1c9a06157d257b2e (diff) | |
download | pfsense-packages-1b105aedad724692d68e2f60062981452df662f5.tar.gz pfsense-packages-1b105aedad724692d68e2f60062981452df662f5.tar.bz2 pfsense-packages-1b105aedad724692d68e2f60062981452df662f5.zip |
snort-dev, add deinstall code, code to load fast ip lists 2000,000 ips will load now
Diffstat (limited to 'config/snort-dev/snort.inc')
-rw-r--r-- | config/snort-dev/snort.inc | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/config/snort-dev/snort.inc b/config/snort-dev/snort.inc index 26bdee7d..5b4b8fed 100644 --- a/config/snort-dev/snort.inc +++ b/config/snort-dev/snort.inc @@ -877,28 +877,31 @@ function snort_deinstall() $x=0; foreach($config['cron']['item'] as $item) { - if (strstr($item['command'], "snort2c")) - { - $is_installed = true; - break; - } + if (strstr($item['command'], "snort2c")) + { + $is_installed = true; + break; + } - $x++; + $x++; + } - if($is_installed == true) + if($is_installed == true) + { + if($x > 0) { - if($x > 0) - { - unset($config['cron']['item'][$x]); - write_config(); - conf_mount_rw(); - } - configure_cron(); + unset($config['cron']['item'][$x]); + write_config(); + conf_mount_rw(); } - } - conf_mount_ro(); + + configure_cron(); + + } + conf_mount_ro(); } + function snort_rules_up_deinstall_cron($should_install) { global $config, $g; |