aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-05-13 23:53:33 -0400
committerScott Ullrich <sullrich@pfsense.org>2011-05-13 23:53:33 -0400
commit4d8827d39497ba562dab103e6c9cc886014719c2 (patch)
tree7b7e781267503a8b8dc1537f33253c8216f969ef
parent393545d377e71d06dcce9197cb99cccebfcc387d (diff)
downloadpfsense-packages-4d8827d39497ba562dab103e6c9cc886014719c2.tar.gz
pfsense-packages-4d8827d39497ba562dab103e6c9cc886014719c2.tar.bz2
pfsense-packages-4d8827d39497ba562dab103e6c9cc886014719c2.zip
Add back vmxnet driver that was accidentaly backed out.
-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