qubes-core-admin-linux/udev/udev-usb-remove
2013-03-16 19:52:16 +01:00

10 lines
179 B
Bash
Executable File

#!/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"