diff options
author | Simon Rettberg | 2019-07-10 11:34:43 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-07-10 11:34:43 +0200 |
commit | 4bf4830308610990d80d6debaf8891391803c55a (patch) | |
tree | e1b59093a4f397b5b85a02bf5c5324b7697a17a5 /core/modules/vmware-common | |
parent | [xorg] add missing gl vendor mesa def file (diff) | |
download | mltk-4bf4830308610990d80d6debaf8891391803c55a.tar.gz mltk-4bf4830308610990d80d6debaf8891391803c55a.tar.xz mltk-4bf4830308610990d80d6debaf8891391803c55a.zip |
[vmware-common] Try to fix invalid USB config from older uploads
Diffstat (limited to 'core/modules/vmware-common')
-rw-r--r-- | core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc index 005bfc56..e6b7e1ab 100644 --- a/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc +++ b/core/modules/vmware-common/data/opt/openslx/vmchooser/plugins/vmware/includes/write_final_vmx.inc @@ -138,6 +138,12 @@ setup_usb() { echo 'usb.generic.autoconnect = "TRUE"' >> "${TMPCONFIG}" echo 'usb.mangleUsb3Speed = "TRUE"' >> "${TMPCONFIG}" + # Workaround for old VMs + if grep -q -i '^ehci\.present.*TRUE' \ + && ! grep -q -i '^usb\.present'; then + echo 'usb.present = "TRUE"' >> "${TMPCONFIG}" + fi + # See if there are any USB devices connected that we want to pass through immediately get_usb_devices 'usb.autoConnect.deviceXXXXX = "0x%VENDOR%:0x%PRODUCT%"' \ | sed -r 's/0x0+/0x/g' \ |