diff options
author | robiscool <robrob2626@yahoo.com> | 2009-12-12 21:29:19 -0800 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2009-12-12 21:29:19 -0800 |
commit | d328ae594ea0c3a036dafe77b6e8b1a8e8358b28 (patch) | |
tree | 4b11f503173068a91ca2c41d9081ef771e5fd5c4 /config/snort-dev/snort_interfaces.php | |
parent | 5ec6d77ddbf7a8f7bb1dc4fd03e4abeaba358d4a (diff) | |
download | pfsense-packages-d328ae594ea0c3a036dafe77b6e8b1a8e8358b28.tar.gz pfsense-packages-d328ae594ea0c3a036dafe77b6e8b1a8e8358b28.tar.bz2 pfsense-packages-d328ae594ea0c3a036dafe77b6e8b1a8e8358b28.zip |
snort-dev, make sure code works with nanobsd
Diffstat (limited to 'config/snort-dev/snort_interfaces.php')
-rw-r--r-- | config/snort-dev/snort_interfaces.php | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/config/snort-dev/snort_interfaces.php b/config/snort-dev/snort_interfaces.php index 3650d1de..eef871bb 100644 --- a/config/snort-dev/snort_interfaces.php +++ b/config/snort-dev/snort_interfaces.php @@ -142,18 +142,21 @@ if (isset($_POST['del_x'])) { $after_mem = exec("/usr/bin/top | /usr/bin/grep Wired | /usr/bin/awk '{ print $2 }'"); exec("/usr/bin/logger -p daemon.info -i -t SnortStartup 'MEM after {$rulei}{$if_real} STOP {$after_mem}'"); exec("/usr/bin/logger -p daemon.info -i -t SnortStartup 'Interface Rule removed for {$rulei}{$if_real}...'"); - + } } - - exec("/bin/rm -r /usr/local/etc/snort/snort_$rulei$if_real"); - exec("/bin/rm /usr/local/etc/rc.d/snort_$rulei$if_real.sh"); - exec("/bin/rm /var/log/snort/snort.u2_$rulei$if_real*"); unset($a_nat[$rulei]); } + + conf_mount_rw(); + exec("/bin/rm -r /usr/local/etc/snort/snort_$rulei$if_real"); + exec("/bin/rm /usr/local/etc/rc.d/snort_$rulei$if_real.sh"); + exec("/bin/rm /var/log/snort/snort.u2_$rulei$if_real*"); + conf_mount_ro(); + write_config(); // touch($d_natconfdirty_path); header("Location: /snort/snort_interfaces.php"); |