dom0+vm/qvm-usb: changed XS path naming scheme again

This commit is contained in:
Alexandre Bezroutchko 2012-10-08 00:43:01 +02:00
parent 5103ba8250
commit 361a087562
2 changed files with 4 additions and 3 deletions

View File

@ -8,10 +8,11 @@
## running in dom0. ## running in dom0.
## ##
# FIXME: Ignore USB hubs. # FIXME: Ignore USB hubs and other wierd devices.
[ "$DEVNUM" = "001" ] && exit 0 [ "$DEVNUM" = "001" ] && exit 0
[ "$DEVTYPE" != "usb_device" ] && exit 0
NAME="${BUSNUM}/${DEVNUM}" NAME=`basename ${DEVPATH}`
# FIXME: For some devices (my Cherry keyboard) ID_SERIAL does not # FIXME: For some devices (my Cherry keyboard) ID_SERIAL does not
# contain proper human-readable name, should find better method to # contain proper human-readable name, should find better method to
# build devide description. # build devide description.

View File

@ -3,7 +3,7 @@
# FIXME: Ignore USB hubs. # FIXME: Ignore USB hubs.
[ "$DEVNUM" = "001" ] && exit 0 [ "$DEVNUM" = "001" ] && exit 0
NAME="${BUSNUM}/${DEVNUM}" NAME=`basename ${DEVPATH}`
XS_KEY="qubes-usb-devices/$NAME" XS_KEY="qubes-usb-devices/$NAME"
xenstore-rm "$XS_KEY" xenstore-rm "$XS_KEY"