From 0942bfbee11f6d3ee9d41be6059987b01177fa8c Mon Sep 17 00:00:00 2001 From: robiscool Date: Fri, 26 Mar 2010 18:48:00 -0700 Subject: snort-dev, add snort.inc code for postinstall --- config/snort-dev/snort.inc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'config/snort-dev') diff --git a/config/snort-dev/snort.inc b/config/snort-dev/snort.inc index 18a817bf..b6012e51 100644 --- a/config/snort-dev/snort.inc +++ b/config/snort-dev/snort.inc @@ -259,6 +259,15 @@ function snort_postinstall() exec('/bin/rm /usr/local/lib/snort/dynamicpreprocessor/lib_sfdynamic_preprocessor_example*'); } + /* 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'; + } + /* move files around, make it look clean */ exec('/bin/mkdir -p /usr/local/www/snort/css'); exec('/bin/mkdir -p /usr/local/www/snort/images'); -- cgit v1.2.3