aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-03-31 20:33:02 -0400
committerScott Ullrich <sullrich@pfsense.org>2011-03-31 20:33:11 -0400
commit9da2c7e5948fd8e7e12745bbbc0cf4fb3158b841 (patch)
tree2e34388bff7a17fbe95dfc1727ff34ed1a7d734c
parentea63a231351a0794d1785323d436e0dbd9e26b84 (diff)
downloadpfsense-packages-9da2c7e5948fd8e7e12745bbbc0cf4fb3158b841.tar.gz
pfsense-packages-9da2c7e5948fd8e7e12745bbbc0cf4fb3158b841.tar.bz2
pfsense-packages-9da2c7e5948fd8e7e12745bbbc0cf4fb3158b841.zip
Adding vmxnet on bootup support
-rw-r--r--config/open-vm-tools_2/open-vm-tools.inc16
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
#