aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/open-vm-tools/open-vm-tools.inc12
1 files changed, 12 insertions, 0 deletions
diff --git a/config/open-vm-tools/open-vm-tools.inc b/config/open-vm-tools/open-vm-tools.inc
index f1dc17fb..6721254a 100644
--- a/config/open-vm-tools/open-vm-tools.inc
+++ b/config/open-vm-tools/open-vm-tools.inc
@@ -5,6 +5,18 @@ function open_vm_tools_deinstall() {
}
function open_vm_tools_install() {
+ exec("/bin/cp /usr/local/lib/vmware-tools/modules/drivers/*.ko /boot/kernel/");
+ if(!file_exists("/boot/loader.conf"))
+ touch("/boot/loader.conf");
+ $load_conf = file_get_contents("/boot/loader.conf");
+ if(!strstr("vmxnet")) {
+ $load_conf .= <<<EOFA
+vmblock_load="YES"
+vmmemct_load="YES"
+vmhgfs_load="YES"
+vmxnet_load="YES"
+EOFA;
+ file_put_contents("/boot/loader.conf", $load_conf);
$vmware_guestd = <<<EOF
#!/bin/sh