2012-10-07 19:35:46 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2012-10-07 23:23:52 +02:00
|
|
|
# FIXME: Ignore USB hubs.
|
2012-10-23 05:44:37 +02:00
|
|
|
[ "`echo $TYPE | cut -f1 -d/`" = "9" ] && exit 0
|
2012-10-07 19:35:46 +02:00
|
|
|
|
2012-10-23 05:42:39 +02:00
|
|
|
NAME=`basename ${DEVPATH} | tr . _`
|
2012-10-07 19:35:46 +02:00
|
|
|
XS_KEY="qubes-usb-devices/$NAME"
|
|
|
|
|
|
|
|
xenstore-rm "$XS_KEY"
|