From 9da2c7e5948fd8e7e12745bbbc0cf4fb3158b841 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 31 Mar 2011 20:33:02 -0400 Subject: Adding vmxnet on bootup support --- config/open-vm-tools_2/open-vm-tools.inc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 .= <<