diff options
-rw-r--r-- | config/open-vm-tools/open-vm-tools.inc | 4 | ||||
-rw-r--r-- | config/open-vm-tools/open-vm-tools.xml | 5 |
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 |