X-Git-Url: https://git.ao2.it/libam7xxx.git/blobdiff_plain/43e254e83852e9ca46969cffa40cbb1fcb2936c3..69d3f89c0ad1b04bf78537726bd1ad891d94855a:/contrib/99-am7xxx-autodisplay.rules diff --git a/contrib/99-am7xxx-autodisplay.rules b/contrib/99-am7xxx-autodisplay.rules new file mode 100644 index 0000000..fc58472 --- /dev/null +++ b/contrib/99-am7xxx-autodisplay.rules @@ -0,0 +1,3 @@ +# Example rules to show how to run a program when the device is plugged in or out +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1de1", ATTRS{idProduct}=="c101", MODE="0660", GROUP="plugdev", RUN+="am7xxx-autodisplay.sh start" +ACTION=="remove", SUBSYSTEM=="usb", ENV{ID_VENDOR_ID}=="1de1", ENV{ID_MODEL_ID}=="c101", RUN+="am7xxx-autodisplay.sh stop"