udev: Match attributes correctly and trigger systemd unit

This starts to make g13d more automatic. Instead of requiring manual
intervention or automatic starts on system start, this will allow udevd to
automatically trigger g13d when a g13 is plugged in.

There's still a bug in g13d where if the device falls off the USB chain g13d
won't exit, though, but this is a good start.
This commit is contained in:
June Tate-Gans 2021-04-25 12:18:07 -05:00
parent eba5f77a88
commit b04a8d6152

View File

@ -1 +1 @@
SUBSYSTEM=="usb", ATTR{idVendor}=="046d", ATTR{idProduct}=="c21c", GROUP="input", MODE="0660"
SUBSYSTEM=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c21c", MODE="0660", TAG+="systemd", ENV{SYSTEMD_WANTS}="g13d.service"