aboutsummaryrefslogtreecommitdiffstats
path: root/config/open-vm-tools_2/open-vm-tools.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/open-vm-tools_2/open-vm-tools.inc')
-rw-r--r--config/open-vm-tools_2/open-vm-tools.inc8
1 files changed, 6 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 5235acde..e36b3e8e 100644
--- a/config/open-vm-tools_2/open-vm-tools.inc
+++ b/config/open-vm-tools_2/open-vm-tools.inc
@@ -16,7 +16,11 @@ function open_vm_tools_install() {
unlink_if_exists("/boot/kernel/vmmemctl.ko");
unlink_if_exists("/boot/kernel/vmxnet.ko");
- $openvmtools_path = "/usr/pbi/open-vm-tools-" . php_uname("m");
+ $pfs_version=substr(trim(file_get_contents("/etc/version")),0,3);
+ if ($pfs_version == "2.1" || $pfs_version == "2.2")
+ $openvmtools_path = "/usr/pbi/open-vm-tools-" . php_uname("m");
+ 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/");
@@ -141,4 +145,4 @@ EOF;
}
-?> \ No newline at end of file
+?>