aboutsummaryrefslogtreecommitdiffstats
path: root/config/open-vm-tools_2
diff options
context:
space:
mode:
Diffstat (limited to 'config/open-vm-tools_2')
-rw-r--r--config/open-vm-tools_2/open-vm-tools.inc12
1 files changed, 7 insertions, 5 deletions
diff --git a/config/open-vm-tools_2/open-vm-tools.inc b/config/open-vm-tools_2/open-vm-tools.inc
index 4844a896..679eec62 100644
--- a/config/open-vm-tools_2/open-vm-tools.inc
+++ b/config/open-vm-tools_2/open-vm-tools.inc
@@ -9,15 +9,17 @@ function open_vm_tools_install() {
if(!file_exists("/boot/loader.conf"))
touch("/boot/loader.conf");
$load_conf = file_get_contents("/boot/loader.conf");
- if(!strstr("vmxnet")) {
- $load_conf .= <<<EOF
+ if(!strstr($load_conf, "vmxnet")) {
+ $load_conf .= <<<EOFA
vmblock_load="YES"
vmmemct_load="YES"
vmhgfs_load="YES"
vmxnet_load="YES"
-EOF;
- file_put_contents("/boot/loader.conf", $load_conf);
- }
+
+EOFA;
+
+ file_put_contents("/boot/loader.conf", $load_conf);
+}
$vmware_guestd = <<<EOF
#!/bin/sh