6fe9132e0a
This method filter out also "rate matching hub", which is device 2.
10 lines
179 B
Bash
Executable File
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"
|