summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDirk2011-10-28 19:32:39 +0200
committerDirk2011-10-28 19:32:39 +0200
commitc51025b2a24e7b94733bfe3ef6b4646c7b1e1ed1 (patch)
treec1600f635260d81e936e976a1a100ddbd7472a6c /src
parentSmall fix for checking on bootsplash in hwautocfg. (diff)
downloadcore-c51025b2a24e7b94733bfe3ef6b4646c7b1e1ed1.tar.gz
core-c51025b2a24e7b94733bfe3ef6b4646c7b1e1ed1.tar.xz
core-c51025b2a24e7b94733bfe3ef6b4646c7b1e1ed1.zip
Feature selection was too late in run-virt.include ...
Diffstat (limited to 'src')
-rw-r--r--src/os-plugins/plugins/vmware/files/run-virt.include49
1 files changed, 24 insertions, 25 deletions
diff --git a/src/os-plugins/plugins/vmware/files/run-virt.include b/src/os-plugins/plugins/vmware/files/run-virt.include
index 8da908e5..db8ad234 100644
--- a/src/os-plugins/plugins/vmware/files/run-virt.include
+++ b/src/os-plugins/plugins/vmware/files/run-virt.include
@@ -52,8 +52,31 @@ ehci.present = \"TRUE\"
mks.enable3d = \"${enable3d}\"" >>${conffile}
;;
esac
+# check for the ostype
+case "${vmostype}" in
+ winxp*|windowsxp*)
+ ;;
+ winvista*|windowsvista*)
+ ;;
+ windows7*)
+ ;;
+ linux*|*ubuntu*|*suse*|debian*|*sci*)
+ vmostype="linux"
+ ;;
+ macos*)
+ cpu_cores="1"
+ vmostype="other"
+ ;;
+ beos*)
+ cpu_cores="1"
+ vmostype="other"
+ ;;
+ *)
+ vmostype="other"
+ ;;
+esac
case "$vmversion" in
- 3.*|7.*)
+ 3.*|7.*|8.*)
numvcpus="${cpu_cores}"
if [ "${cpu_cores}" -ge "4" 2>/dev/null ]; then
numvcpus="4"
@@ -362,30 +385,6 @@ case "${hddrv}" in
;;
esac
-# check for the ostype
-case "${vmostype}" in
- winxp*|windowsxp*)
- ;;
- winvista*|windowsvista*)
- ;;
- windows7*)
- ;;
- linux*|*ubuntu*|*suse*|debian*|*sci*)
- vmostype="linux"
- ;;
- macos*)
- numvcpus="1"
- vmostype="other"
- ;;
- beos*)
- numvcpus="1"
- vmostype="other"
- ;;
- *)
- vmostype="other"
- ;;
-esac
-
# write configuration files
################################################################################