diff options
author | Ermal <eri@pfsense.org> | 2011-08-04 18:03:09 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-08-04 18:03:09 +0000 |
commit | 668c466767928ce0b29cd7bcc67226f360689e49 (patch) | |
tree | 2483ff37ccae21f4b3096795e2ee84da3cf6c2bf | |
parent | dc68f3e64befd48825ea897fcfc010dbe24d7ccd (diff) | |
download | pfsense-packages-668c466767928ce0b29cd7bcc67226f360689e49.tar.gz pfsense-packages-668c466767928ce0b29cd7bcc67226f360689e49.tar.bz2 pfsense-packages-668c466767928ce0b29cd7bcc67226f360689e49.zip |
Remove unused and problematic code
-rw-r--r-- | config/snort/snort.inc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc index 65086621..0a7af0c3 100644 --- a/config/snort/snort.inc +++ b/config/snort/snort.inc @@ -705,10 +705,8 @@ function snort_snortloglimit_install_cron($should_install) { unset($config['cron']['item'][$x]); break; } - configure_cron(); } - /* func for updating cron */ function snort_rm_blocked_install_cron($should_install) { @@ -934,8 +932,7 @@ function sync_snort_package_remove_old() } /* make sure this func on writes to files and does not start snort */ -function sync_snort_package() -{ +function sync_snort_package() { global $config, $g; /* all new files are for the user snort nologin */ @@ -965,12 +962,6 @@ function sync_snort_package() exec('/bin/chmod -R 770 /var/log/snort'); exec('/bin/chmod -R 770 /usr/local/lib/snort'); exec('/bin/chmod -R 770 /usr/local/etc/snort/'); - - /* auto install loglimit dfault if value not set */ - $snortloglimitsize = $config['installedpackages']['snortglobal']['snortloglimitsize']; - $snortloglimit = $config['installedpackages']['snortglobal']['snortloglimit']; - - snort_snortloglimit_install_cron($config['installedpackages']['snortglobal']['snortloglimit'] == 'on' ? true : false); } /* only run when a single iface needs to sync */ |