diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-03-31 20:33:02 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-03-31 20:33:11 -0400 |
commit | 9da2c7e5948fd8e7e12745bbbc0cf4fb3158b841 (patch) | |
tree | 2e34388bff7a17fbe95dfc1727ff34ed1a7d734c /config/open-vm-tools_2/open-vm-tools.inc | |
parent | ea63a231351a0794d1785323d436e0dbd9e26b84 (diff) | |
download | pfsense-packages-9da2c7e5948fd8e7e12745bbbc0cf4fb3158b841.tar.gz pfsense-packages-9da2c7e5948fd8e7e12745bbbc0cf4fb3158b841.tar.bz2 pfsense-packages-9da2c7e5948fd8e7e12745bbbc0cf4fb3158b841.zip |
Adding vmxnet on bootup support
Diffstat (limited to 'config/open-vm-tools_2/open-vm-tools.inc')
-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 # |