dom0+vm/qvm-usb: improve USB hubs detection
This method filter out also "rate matching hub", which is device 2.
This commit is contained in:
parent
158ac0bd6a
commit
6fe9132e0a
@ -9,7 +9,7 @@
|
|||||||
##
|
##
|
||||||
|
|
||||||
# FIXME: Ignore USB hubs and other wierd devices (see also in usb_remove).
|
# FIXME: Ignore USB hubs and other wierd devices (see also in usb_remove).
|
||||||
[ "$DEVNUM" = "001" ] && exit 0
|
[ "`echo $TYPE | cut -f1 -d/`" = "9" ] && exit 0
|
||||||
[ "$DEVTYPE" != "usb_device" ] && exit 0
|
[ "$DEVTYPE" != "usb_device" ] && exit 0
|
||||||
|
|
||||||
# xenstore doesn't allow dot in key name
|
# xenstore doesn't allow dot in key name
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# FIXME: Ignore USB hubs.
|
# FIXME: Ignore USB hubs.
|
||||||
[ "$DEVNUM" = "001" ] && exit 0
|
[ "`echo $TYPE | cut -f1 -d/`" = "9" ] && exit 0
|
||||||
|
|
||||||
NAME=`basename ${DEVPATH} | tr . _`
|
NAME=`basename ${DEVPATH} | tr . _`
|
||||||
XS_KEY="qubes-usb-devices/$NAME"
|
XS_KEY="qubes-usb-devices/$NAME"
|
||||||
|
Loading…
Reference in New Issue
Block a user