aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
Diffstat (limited to 'config/snort')
-rw-r--r--config/snort/snort.inc20
1 files changed, 19 insertions, 1 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 7bb10005..b5f93472 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -494,9 +494,27 @@ function post_delete_logs()
function snort_postinstall()
{
- global $config, $pfsense_stable, $snort_arch;
+ global $config;
conf_mount_rw();
+/* find out if were in 1.2.3-RELEASE */
+$pfsense_ver_chk = exec('/bin/cat /etc/version');
+if ($pfsense_ver_chk == '1.2.3-RELEASE')
+{
+ $pfsense_stable = 'yes';
+}else{
+ $pfsense_stable = 'no';
+}
+
+/* find out what arch where in x86 , x64 */
+$snort_arch_ck = '';
+exec('/usr/bin/uname -m', $snort_arch_ck);
+if($snort_arch_ck[0] == 'i386') {
+ $snort_arch = 'x86';
+}else{
+ $snort_arch = 'x64';
+}
+
/* snort -> advanced features */
$bpfbufsize = $config['installedpackages']['snortglobal']['bpfbufsize'];
$bpfmaxbufsize = $config['installedpackages']['snortglobal']['bpfmaxbufsize'];