aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-11 01:24:40 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-11 01:24:40 +0000
commit9f9d71887351f643472d2cf639f3485ed4680259 (patch)
tree77d24d43bd4e82b91c37ee05781743b14b36efaa
parent2a6d66b3cd8bf6c2e018134287b93420fa7b92c0 (diff)
downloadpfsense-packages-9f9d71887351f643472d2cf639f3485ed4680259.tar.gz
pfsense-packages-9f9d71887351f643472d2cf639f3485ed4680259.tar.bz2
pfsense-packages-9f9d71887351f643472d2cf639f3485ed4680259.zip
Make sure snort is deinstalled correctly
Ticket #1252
-rw-r--r--packages/snort/snort.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc
index 602484f3..04ff8809 100644
--- a/packages/snort/snort.inc
+++ b/packages/snort/snort.inc
@@ -167,6 +167,9 @@ function snort_deinstall() {
exec("/usr/bin/killall snort");
sleep(5);
exec("/usr/bin/killall -9 snort");
+ exec("rm -f /usr/local/etc/rc.d/snort*");
+ exec("rm -rf /usr/local/etc/snort*");
+ exec("cd /var/db/pkg && pkg_delete `ls | grep snort`");
}
function generate_snort_conf() {