dom0+vm/qvm-usb: adjust usb_remove to the new XS naming scheme
This commit is contained in:
parent
d6426e3564
commit
876924f233
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user