Dynamically attach and detach USB devices to a libvirt guest
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
349 B

# libvirt-usb-hotplug.rules
ACTION=="add", \
SUBSYSTEM=="usb", \
PROGRAM=="/usr/bin/libvirt-usb-hotplug match" \
SYMLINK+="libvirt_%c_%E{ID_VENDOR_ID}_%E{ID_MODEL_ID}", \
TAG+="systemd", \
ENV{SYSTEMD_WANTS}="libvirt_%c_%E{ID_VENDOR_ID}_%E{ID_MODEL_ID}"
ACTION=="remove", \
SUBSYSTEM=="usb", \
ENV{PRODUCT}=="46d/c215/*", \
TAG+="systemd"