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:
parent
6eab71f678
commit
e37f9da355
@ -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…
Reference in New Issue
Block a user