udev: update detecting usbip-connected devices

Controller sysfs path have changed in recent kernels ('vhci_hcd' ->
'vhci_hcd.0'), look for vhci_hcd prefix, not exact this name.

QubesOS/qubes-issues#3455
This commit is contained in:
Marek Marczykowski-Górecki 2018-01-17 16:12:24 +01:00
parent 6eab71f678
commit e37f9da355
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -25,7 +25,7 @@ VERSION=`cat /sys/$DEVPATH/version | tr -d ' '|cut -f 1 -d .`
# ignore usbip-connected devices, as most likely already passed through from # ignore usbip-connected devices, as most likely already passed through from
# another VM # another VM
if [ "`echo $DEVPATH | cut -d / -f 2-4`" = "devices/platform/vhci_hcd" ]; then if echo $DEVPATH | grep -q /vhci_hcd; then
exit 0 exit 0
fi fi