qubes-core-admin-linux/udev/udev-usb-remove

10 lines
179 B
Plaintext
Raw Normal View History

2013-03-16 18:52:16 +00:00
#!/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"