Skip to content

Instantly share code, notes, and snippets.

View ffeldner's full-sized avatar

Flora Elisabeth Feldner ffeldner

View GitHub Profile
@ffeldner
ffeldner / 90-libvirt-usb.rules
Last active November 4, 2024 04:20
automatically reattaches zigbee usb device to homeassistant VM and starts the addon after attach - modified and extended from https://gist.github.com/nickpegg/417cf5024b765c3c92cbfbd725310091/
# File location: /etc/udev/rules.d/90-libvirt-usb.rules
ACTION=="bind", \
SUBSYSTEM=="usb", \
ENV{ID_VENDOR_ID}=="10c4", \
ENV{ID_MODEL_ID}=="ea60", \
RUN+="/usr/local/bin/kvm-udev.sh attach <DOMAIN>"
ACTION=="remove", \
SUBSYSTEM=="usb", \
ENV{ID_VENDOR_ID}=="10c4", \
ENV{ID_MODEL_ID}=="ea60", \