From c09edd06d2db7a787c0c35b879b6bc1eeea424d5 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 24 Feb 2016 11:53:16 +0100 Subject: [run-virt/vmware] Scan for usb devices that we should pass through before starting vm --- .../vmware/data/opt/openslx/vmchooser/vmware/run-virt.include | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'remote/modules/vmware') 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 5c76a180..e25947e0 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 @@ -60,6 +60,13 @@ if [ -n "$HWVER" ] && [ "$HWVER" -gt "$maxhardwareversion" ]; then sed -i 's/^virtualHW\.version.*$/virtualHW.version = "'$maxhardwareversion'"/I' "$conffile" 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' \ + | awk '{sub(/XXXXX/,NR-1)}1' \ + >> "$conffile" + + # For debugging cp "$conffile" "/tmp/vmware-last-config" -- cgit v1.2.3-55-g7522