summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/os-plugins/plugins/vmware/files/run-virt.include30
1 files changed, 24 insertions, 6 deletions
diff --git a/src/os-plugins/plugins/vmware/files/run-virt.include b/src/os-plugins/plugins/vmware/files/run-virt.include
index 86ba4700..f57cd766 100644
--- a/src/os-plugins/plugins/vmware/files/run-virt.include
+++ b/src/os-plugins/plugins/vmware/files/run-virt.include
@@ -269,12 +269,30 @@ pref.vmplayer.confirmOnExit = \"TRUE\"
# shared folders
pref.enableAllSharedFolders = \"TRUE\"
-# eula
-pref.eula.size = \"2\"
-pref.eula.0.appName = \"VMware Player\"
-pref.eula.0.buildNumber = \"${vmbuild}\"
-pref.eula.1.appName = \"VMware Workstation\"
-pref.eula.1.buildNumber = \"${vmbuild}\"" >${vmhome}/preferences
+# eula" >${vmhome}/preferences
+
+# different eula parameters from Workstation 9+
+
+case "$vmversion" in
+ 3.*|4.*|7.*|8.*)
+ echo "
+ pref.eula.size = \"2\"
+ pref.eula.0.appName = \"VMware Player\"
+ pref.eula.0.buildNumber = \"${vmbuild}\"
+ pref.eula.1.appName = \"VMware Workstation\"
+ pref.eula.1.buildNumber = \"${vmbuild}\"" >>${vmhome}/preferences
+ ;;
+ 9.*)
+ # code
+ echo "
+ pref.eula.count = \"2\"
+ pref.eula0.product = \"VMware Player\"
+ pref.eula0.build = \"${vmbuild}\"
+ pref.eula1.product = \"VMware Workstation\"
+ pref.eula1.build = \"${vmbuild}\"" >>${vmhome}/preferences
+ ;;
+esac
+
}