aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-08-29 00:04:09 -0400
committerjim-p <jim@pingle.org>2009-08-29 00:04:09 -0400
commitdca5d2a6ee3cbe53ab32bc75450c889268e2a346 (patch)
treef544b93999d0e3fba06dfe3a2968f25864c37afd /config
parentae0f1122d76aa065639acc1877752f94df5fc0ba (diff)
downloadpfsense-packages-dca5d2a6ee3cbe53ab32bc75450c889268e2a346.tar.gz
pfsense-packages-dca5d2a6ee3cbe53ab32bc75450c889268e2a346.tar.bz2
pfsense-packages-dca5d2a6ee3cbe53ab32bc75450c889268e2a346.zip
Snort package: Fix snort2c running even when not selected
Diffstat (limited to 'config')
-rwxr-xr-xconfig/snort/snort.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 977ae761..884f0883 100755
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -151,9 +151,10 @@ function sync_package_snort()
}
/* if block offenders is checked, start snort2c */
- if($_POST['blockoffenders'])
+ if($_POST['blockoffenders']) {
$start .= "\nsleep 8\n";
$start .= "snort2c -w /var/db/whitelist -a /var/log/snort/alert\n";
+ }
$sample_before = "\nBEFORE_MEM=`top | grep Free | grep Wired | awk '{print \$10}'`\n";
$sample_after = "\nAFTER_MEM=`top | grep Free | grep Wired | awk '{print \$10}'`\n";