aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-03-19 17:06:39 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-03-19 17:06:39 -0400
commit238f63d6c686453f808c301dd2bc6c2a8699d850 (patch)
tree1f723c3e0d15003490df32e8de64882935223a7e /config
parent7f8b7c2c83a161c75aa06674cfc2acf8e06f72b2 (diff)
downloadpfsense-packages-238f63d6c686453f808c301dd2bc6c2a8699d850.tar.gz
pfsense-packages-238f63d6c686453f808c301dd2bc6c2a8699d850.tar.bz2
pfsense-packages-238f63d6c686453f808c301dd2bc6c2a8699d850.zip
Exclude disabled interfaces from suricata.sh script and bump version.
Diffstat (limited to 'config')
-rw-r--r--config/suricata/suricata.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/config/suricata/suricata.inc b/config/suricata/suricata.inc
index 2660fae6..7936d41c 100644
--- a/config/suricata/suricata.inc
+++ b/config/suricata/suricata.inc
@@ -41,7 +41,7 @@ if (!is_array($config['installedpackages']['suricata']))
// Define the binary and package build versions
define('SURICATA_VER', '1.4.6');
-define('SURICATA_PKG_VER', 'v0.2-BETA');
+define('SURICATA_PKG_VER', 'v0.3-BETA');
// Create some other useful defines
define('SURICATADIR', '/usr/pbi/suricata-' . php_uname("m") . '/etc/suricata/');
@@ -1703,6 +1703,9 @@ function suricata_create_rc() {
// Loop thru each configured interface and build
// the shell script.
foreach ($suricataconf as $value) {
+ // Skip disabled Suricata interfaces
+ if ($value['enable'] <> 'on')
+ continue;
$suricata_uuid = $value['uuid'];
$if_real = get_real_interface($value['interface']);