summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include')
-rw-r--r--remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include16
1 files changed, 12 insertions, 4 deletions
diff --git a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include
index 016ebdc6..471a207c 100644
--- a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include
+++ b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include
@@ -258,16 +258,15 @@ runvmwareconfheader ()
ethernet0.present = "TRUE"
ethernet0.addressType = "static"
$network_virtualDev
- ethernet0.connectionType = "hostonly"
- #ethernet1.connectionType = "custom"
+ #ethernet0.connectionType = "hostonly"
+ ethernet0.connectionType = "custom"
ethernet0.vnet = "$hostdev"
ethernet0.address = "00:50:56:$macaddrsuffix"
ethernet0.wakeOnPcktRcv = "FALSE"
# sound
sound.present = "TRUE"
- sound.fileName = "sysdefault:CARD=$SOUND_CARD_INDEX"
- sound.autodetect = "FALSE"
+ $sound_fileName
sound.virtualdev = "$sound"
pciSound.enableVolumeControl = "FALSE"
sound.enableVolumeControl = "FALSE"
@@ -469,6 +468,15 @@ esac
# set standard sound card, overwrite depending on OS (options sb16, es1371, hdaudio)
sound="es1371"
+# set sound card explicitly if there is more than one card in the host system
+if [ -n "$SOUND_CARD_INDEX" -a -n "$SOUND_CARD_COUNT" ] && [ "$SOUND_CARD_COUNT" -gt 1 ]; then
+ sound_fileName="sound.fileName = \"sysdefault:CARD=${SOUND_CARD_INDEX}\"
+sound.autodetect = \"FALSE\""
+else
+ sound_fileName='sound.fileName = "-1"
+sound.autodetect = "TRUE"'
+fi
+
# check for 3D configuration setting
case "$enable3d" in
true|yes)