# NOTE: this script is provided just as a template for systems without systemd. # Execute cyclabile when the projector is plugged in, ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1de1", ATTRS{idProduct}=="c101", MODE="0660", GROUP="plugdev", RUN+="/usr/bin/make -C /home/debian/cyclabile run" # Kill it when the projector is unplugged. ACTION=="remove", SUBSYSTEM=="usb", ENV{ID_VENDOR_ID}=="1de1", ENV{ID_MODEL_ID}=="c101", RUN+="killall cyclabile"