2013-03-20 05:27:32 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# FIXME: Ignore USB hubs.
|
|
|
|
[ "`echo $TYPE | cut -f1 -d/`" = "9" ] && exit 0
|
|
|
|
|
|
|
|
NAME=`basename ${DEVPATH} | tr . _`
|
2016-06-01 12:04:10 +00:00
|
|
|
QDB_KEY="/qubes-usb-devices/$NAME/"
|
2013-03-20 05:27:32 +00:00
|
|
|
|
2013-06-07 03:21:41 +00:00
|
|
|
qubesdb-rm "$QDB_KEY"
|
|
|
|
qubesdb-write /qubes-usb-devices ''
|