From 876924f233a9cd2b27ee4819fd6946fbc4d09bbc Mon Sep 17 00:00:00 2001 From: Alexandre Bezroutchko Date: Sun, 7 Oct 2012 23:23:52 +0200 Subject: [PATCH] dom0+vm/qvm-usb: adjust usb_remove to the new XS naming scheme --- misc/usb_remove | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/misc/usb_remove b/misc/usb_remove index ea66b7cd..5598849b 100755 --- a/misc/usb_remove +++ b/misc/usb_remove @@ -1,10 +1,9 @@ #!/bin/sh -[ "x$DEVTYPE" = "xusb_device" ] || exit 0 +# FIXME: Ignore USB hubs. +[ "$DEVNUM" = "001" ] && exit 0 -NAME="${ID_VENDOR_ID}_${ID_MODEL_ID}" -DESC="${NAME} ${ID_SERIAL}" +NAME="${BUSNUM}/${DEVNUM}" XS_KEY="qubes-usb-devices/$NAME" xenstore-rm "$XS_KEY" -