dom0+vm/qvm-usb: adjust usb_remove to the new XS naming scheme

This commit is contained in:
Alexandre Bezroutchko 2012-10-07 23:23:52 +02:00
parent 4c4889ec1a
commit 850353dcfc

View File

@ -1,10 +1,9 @@
#!/bin/sh #!/bin/sh
[ "x$DEVTYPE" = "xusb_device" ] || exit 0 # FIXME: Ignore USB hubs.
[ "$DEVNUM" = "001" ] && exit 0
NAME="${ID_VENDOR_ID}_${ID_MODEL_ID}" NAME="${BUSNUM}/${DEVNUM}"
DESC="${NAME} ${ID_SERIAL}"
XS_KEY="qubes-usb-devices/$NAME" XS_KEY="qubes-usb-devices/$NAME"
xenstore-rm "$XS_KEY" xenstore-rm "$XS_KEY"