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
pull/33/head mm_e37f9da3
Marek Marczykowski-Górecki 6 years ago
parent 6eab71f678
commit e37f9da355
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -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
# 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
fi

Loading…
Cancel
Save