diff options
Diffstat (limited to 'config/snort/snort.inc')
-rw-r--r-- | config/snort/snort.inc | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 0a7af0c3..9ce41be3 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -667,8 +667,6 @@ function snort_Getdirsize($node) { function snort_snortloglimit_install_cron($should_install) { global $config, $g; - if ($g['booting']==true) - return; if (!is_array($config['cron']['item'])) $config['cron']['item'] = array(); @@ -682,9 +680,6 @@ function snort_snortloglimit_install_cron($should_install) { $x++; } - $snort_snortloglimit_info_ck = $config['installedpackages']['snortglobal']['snortloglimit']; - $snort_snortloglimitsize_info_ck = $config['installedpackages']['snortglobal']['snortloglimitsize']; - switch($should_install) { case true: if(!$is_installed) { @@ -708,12 +703,9 @@ function snort_snortloglimit_install_cron($should_install) { } /* func for updating cron */ -function snort_rm_blocked_install_cron($should_install) -{ +function snort_rm_blocked_install_cron($should_install) { global $config, $g; - if ($g['booting']==true) - return; if (!is_array($config['cron']['item'])) $config['cron']['item'] = array(); @@ -817,8 +809,6 @@ function snort_rm_blocked_install_cron($should_install) function snort_rules_up_install_cron($should_install) { global $config, $g; - if ($g['booting']==true) - return; if(!$config['cron']['item']) $config['cron']['item'] = array(); @@ -1579,7 +1569,7 @@ function snort_deinstall() { function snort_deinstall_cron($crontask) { global $config, $g; - if(!$config['cron']['item']) + if(!is_array($config['cron']['item'])) return; $x=0; @@ -1926,9 +1916,6 @@ function generate_snort_conf($id, $if_real, $snort_uuid) else $def_ssl_ports_type = "$def_ssl_ports_info_chk"; - /* should we install a automatic update crontab entry? */ - $automaticrulesupdate = $config['installedpackages']['snortglobal']['automaticrulesupdate7']; - /* if user is on pppoe, we really want to use ng0 interface */ if ($snort_pfsense_basever == 'yes' && $snort_ext_int == "wan") $snort_ext_int = get_real_wan_interface(); |