You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# FIXME: Ignore USB hubs.
|
|
|
|
[ "`echo $TYPE | cut -f1 -d/`" = "9" ] && exit 0
|
|
|
|
|
|
|
|
NAME=`basename ${DEVPATH} | tr . _`
|
|
|
|
QDB_KEY="/qubes-usb-devices/$NAME"
|
|
|
|
|
|
|
|
qubesdb-rm "$QDB_KEY"
|
|
|
|
qubesdb-write /qubes-usb-devices ''
|