core-admin/dom0/aux-tools/udev-usb-remove
2013-03-15 23:03:28 +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"