From 95b4cf32ed4a85b4f7d96e0e2bd9f7ba67930c56 Mon Sep 17 00:00:00 2001 From: robiscool Date: Mon, 5 Apr 2010 18:54:02 -0700 Subject: snort, fix the service path entry --- config/snort/snort_interfaces.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'config/snort/snort_interfaces.php') 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"); -- cgit v1.2.3