diff options
-rw-r--r-- | config/open-vm-tools_2/open-vm-tools.inc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/config/open-vm-tools_2/open-vm-tools.inc b/config/open-vm-tools_2/open-vm-tools.inc index f1dc17fb..b6b8ea12 100644 --- a/config/open-vm-tools_2/open-vm-tools.inc +++ b/config/open-vm-tools_2/open-vm-tools.inc @@ -5,7 +5,21 @@ 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); + } + + $boot_loader $vmware_guestd = <<<EOF #!/bin/sh # |