aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort-dev
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2010-03-26 18:48:00 -0700
committerrobiscool <robrob2626@yahoo.com>2010-03-26 18:48:00 -0700
commit0942bfbee11f6d3ee9d41be6059987b01177fa8c (patch)
tree93c259a353efb34e5eefd6b85571fb336efcd1ac /config/snort-dev
parent4c2edcf6a53678cb5935a486ae58b5084c059a14 (diff)
downloadpfsense-packages-0942bfbee11f6d3ee9d41be6059987b01177fa8c.tar.gz
pfsense-packages-0942bfbee11f6d3ee9d41be6059987b01177fa8c.tar.bz2
pfsense-packages-0942bfbee11f6d3ee9d41be6059987b01177fa8c.zip
snort-dev, add snort.inc code for postinstall
Diffstat (limited to 'config/snort-dev')
-rw-r--r--config/snort-dev/snort.inc9
1 files changed, 9 insertions, 0 deletions
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');