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:
Marek Marczykowski 2012-10-23 05:44:37 +02:00
parent 158ac0bd6a
commit 6fe9132e0a
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@
##
# 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
# xenstore doesn't allow dot in key name

View File

@ -1,7 +1,7 @@
#!/bin/sh
# FIXME: Ignore USB hubs.
[ "$DEVNUM" = "001" ] && exit 0
[ "`echo $TYPE | cut -f1 -d/`" = "9" ] && exit 0
NAME=`basename ${DEVPATH} | tr . _`
XS_KEY="qubes-usb-devices/$NAME"