core-agent-linux/misc/usb_remove

11 lines
177 B
Bash
Executable File

#!/bin/sh
[ "x$DEVTYPE" = "xusb_device" ] || exit 0
NAME="${ID_VENDOR_ID}_${ID_MODEL_ID}"
DESC="${NAME} ${ID_SERIAL}"
XS_KEY="qubes-usb-devices/$NAME"
xenstore-rm "$XS_KEY"