core-admin/misc/usb_remove
2012-10-21 14:59:35 +02:00

10 lines
153 B
Bash
Executable File

#!/bin/sh
# FIXME: Ignore USB hubs.
[ "$DEVNUM" = "001" ] && exit 0
NAME="${BUSNUM}/${DEVNUM}"
XS_KEY="qubes-usb-devices/$NAME"
xenstore-rm "$XS_KEY"