qubes-linux-utils/udev/udev-usb-remove

11 lines
218 B
Plaintext
Raw Normal View History

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