aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort/snort_interfaces.php
diff options
context:
space:
mode:
authorrobiscool <robrob2626@yahoo.com>2010-04-05 18:54:02 -0700
committerrobiscool <robrob2626@yahoo.com>2010-04-05 18:54:02 -0700
commit95b4cf32ed4a85b4f7d96e0e2bd9f7ba67930c56 (patch)
treebf91ef224148bae8ba64b768d15d7f7f7fba21bc /config/snort/snort_interfaces.php
parent90ab5fb165d4462e419a91e6383abeb9c4dde0fb (diff)
downloadpfsense-packages-95b4cf32ed4a85b4f7d96e0e2bd9f7ba67930c56.tar.gz
pfsense-packages-95b4cf32ed4a85b4f7d96e0e2bd9f7ba67930c56.tar.bz2
pfsense-packages-95b4cf32ed4a85b4f7d96e0e2bd9f7ba67930c56.zip
snort, fix the service path entry
Diffstat (limited to 'config/snort/snort_interfaces.php')
-rw-r--r--config/snort/snort_interfaces.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/config/snort/snort_interfaces.php b/config/snort/snort_interfaces.php
index b83068e1..d11422cc 100644
--- a/config/snort/snort_interfaces.php
+++ b/config/snort/snort_interfaces.php
@@ -169,6 +169,16 @@ if (isset($_POST['del_x'])) {
}
write_config();
+ sleep(2);
+
+ /* if there are no ifaces do not create snort.sh */
+ if (isset($config['installedpackages']['snortglobal']['rule'][0]['enable'])) {
+ create_snort_sh();
+ }else{
+ conf_mount_rw();
+ exec('/bin/rm /usr/local/etc/rc.d/snort.sh');
+ conf_mount_ro();
+ }
//touch("/var/run/snort_conf_delete.dirty");