diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-07-01 17:28:56 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-07-01 17:28:56 -0500 |
commit | b1837b700164ad5be9ec0411cc2d266cfc7a54a6 (patch) | |
tree | 9629aa619600298bc44cae6cbd6312c78092a364 /config/open-vm-tools_2 | |
parent | 684859eaa6b099122b96172defcbfd49fcd34b6e (diff) | |
download | pfsense-packages-b1837b700164ad5be9ec0411cc2d266cfc7a54a6.tar.gz pfsense-packages-b1837b700164ad5be9ec0411cc2d266cfc7a54a6.tar.bz2 pfsense-packages-b1837b700164ad5be9ec0411cc2d266cfc7a54a6.zip |
correct open-vm-tools path for 2.1x, not that anyone should be using 2.1x
anymore at this point, but helps with testing automation.
Diffstat (limited to 'config/open-vm-tools_2')
-rw-r--r-- | config/open-vm-tools_2/open-vm-tools.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/config/open-vm-tools_2/open-vm-tools.inc b/config/open-vm-tools_2/open-vm-tools.inc index e36b3e8e..38ee3854 100644 --- a/config/open-vm-tools_2/open-vm-tools.inc +++ b/config/open-vm-tools_2/open-vm-tools.inc @@ -17,10 +17,13 @@ function open_vm_tools_install() { unlink_if_exists("/boot/kernel/vmxnet.ko"); $pfs_version=substr(trim(file_get_contents("/etc/version")),0,3); - if ($pfs_version == "2.1" || $pfs_version == "2.2") + if ($pfs_version == "2.1") { + $openvmtools_path = "/usr/pbi/open-vm-tools-nox11-" . php_uname("m"); + } else if ($pfs_version == "2.2") { $openvmtools_path = "/usr/pbi/open-vm-tools-" . php_uname("m"); - else + } else { $openvmtools_path = "/usr/local"; + } // won't copy this either for now, some sequences of loading/unloading of the module will kernel panic. //exec("cp $openvmtools_path/local/lib/vmware-tools/modules/drivers/vmmemctl.ko /boot/kernel/"); |