core-agent-linux/misc/usb_remove
Marek Marczykowski 6fe9132e0a dom0+vm/qvm-usb: improve USB hubs detection
This method filter out also "rate matching hub", which is device 2.
2012-10-23 05:44:37 +02:00

10 lines
179 B
Bash
Executable File

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