aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_check_cron_misc.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/snort/snort_check_cron_misc.inc')
-rw-r--r--config/snort/snort_check_cron_misc.inc10
1 files changed, 4 insertions, 6 deletions
diff --git a/config/snort/snort_check_cron_misc.inc b/config/snort/snort_check_cron_misc.inc
index a20b42b4..be16c519 100644
--- a/config/snort/snort_check_cron_misc.inc
+++ b/config/snort/snort_check_cron_misc.inc
@@ -44,13 +44,11 @@ require_once("/usr/local/pkg/snort/snort.inc");
$snortloglimit = $config['installedpackages']['snortglobal']['snortloglimit'];
$snortloglimitsize = $config['installedpackages']['snortglobal']['snortloglimitsize'];
-if ($g['booting']==true) {
- exit(0);
-}
+if ($g['booting']==true)
+ return;
-if ($snortloglimit == 'off') {
- exit(0);
-}
+if ($snortloglimit == 'off')
+ return;
$snortloglimitDSKsize = exec('/bin/df -k /var | grep -v "Filesystem" | awk \'{print $4}\'');