aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2012-07-14 22:18:56 +0000
committerErmal <eri@pfsense.org>2012-07-14 22:18:56 +0000
commitf0f787a2e55183330f4e6a2655db51e833406158 (patch)
treef2c566e309c124e0dd2dc62fe3b875a61049717c
parent13a64eb7c28aa216b5b3bb07a3c5113cf8e79f88 (diff)
downloadpfsense-packages-f0f787a2e55183330f4e6a2655db51e833406158.tar.gz
pfsense-packages-f0f787a2e55183330f4e6a2655db51e833406158.tar.bz2
pfsense-packages-f0f787a2e55183330f4e6a2655db51e833406158.zip
Remove unneeded code from deinstall function
-rw-r--r--config/snort/snort.inc5
1 files changed, 1 insertions, 4 deletions
diff --git a/config/snort/snort.inc b/config/snort/snort.inc
index 84f6f1e1..9355c79a 100644
--- a/config/snort/snort.inc
+++ b/config/snort/snort.inc
@@ -835,7 +835,7 @@ function snort_create_rules_iface($if_real, $snort_uuid) {
exec("/bin/mkdir -p {$if_rule_dir}/rules");
exec("/bin/cp {$snortdir}/rules/* {$if_rule_dir}/rules");
if (file_exists("{$snortdir}/custom_rules/local_{$snort_uuid}_{$if_real}.rules"))
- exec("/bin/cp {$snortdir}/custom_rules/local_{$snort_uuid}_{$if_real}.rules {$if_rule_dir}/local_{$snort_uuid}_{$if_real}.rules");
+ @copy("{$snortdir}/custom_rules/local_{$snort_uuid}_{$if_real}.rules", "{$if_rule_dir}/local_{$snort_uuid}_{$if_real}.rules");
}
}
@@ -916,9 +916,6 @@ function snort_deinstall() {
$snortdir = SNORTDIR;
- /* remove custom sysctl */
- remove_text_from_file("/etc/sysctl.conf", "sysctl net.bpf.bufsize=20480");
-
/* decrease bpf buffers back to 4096, from 20480 */
exec('/sbin/sysctl net.bpf.bufsize=4096');
mwexec('/usr/bin/killall snort', true);