aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2009-08-08 19:08:48 -0400
committerScott Ullrich <sullrich@pfsense.org>2009-08-08 19:08:48 -0400
commit301c89ac375be572abc5d65bbb7a22f139117ded (patch)
treea03ffd547f23e23094b65f892eebb2507ebe1284
parent80fba271589130f6f3603157271574ccb42d70d0 (diff)
downloadpfsense-packages-301c89ac375be572abc5d65bbb7a22f139117ded.tar.gz
pfsense-packages-301c89ac375be572abc5d65bbb7a22f139117ded.tar.bz2
pfsense-packages-301c89ac375be572abc5d65bbb7a22f139117ded.zip
Deinstall correctly
-rw-r--r--config/open-vm-tools/open-vm-tools.inc4
-rw-r--r--config/open-vm-tools/open-vm-tools.xml5
2 files changed, 9 insertions, 0 deletions
diff --git a/config/open-vm-tools/open-vm-tools.inc b/config/open-vm-tools/open-vm-tools.inc
index dadec0ce..622194ab 100644
--- a/config/open-vm-tools/open-vm-tools.inc
+++ b/config/open-vm-tools/open-vm-tools.inc
@@ -1,5 +1,9 @@
<?php
+function open_vm_tools_deinstall() {
+ exec("rm /usr/local/etc/rc.d/vmware*");
+}
+
function open_vm_tools_install() {
$vmware_guestd = <<<EOF
diff --git a/config/open-vm-tools/open-vm-tools.xml b/config/open-vm-tools/open-vm-tools.xml
index e393edad..40a8fc51 100644
--- a/config/open-vm-tools/open-vm-tools.xml
+++ b/config/open-vm-tools/open-vm-tools.xml
@@ -59,6 +59,11 @@
conf_mount_ro();
</custom_php_install_command>
<custom_php_deinstall_command>
+ conf_mount_rw();
+ exec("/usr/local/etc/rc.d/vmware-guestd.sh stop");
+ exec("/usr/local/etc/rc.d/vmware-kmod.sh stop");
+ open_vm_tools_deinstall();
+ conf_mount_ro();
</custom_php_deinstall_command>
<include_file>/usr/local/pkg/open-vm-tools.inc</include_file>
</packagegui> \ No newline at end of file