You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I could be wrong (may need some fiddling) but the udev rule should look something like this:

    # Standard Espruino udev rule
    ATTRS{idProduct}=="5740", ATTRS{idVendor}=="0483", ENV{ID_MM_DEVICE_IGNORE}="1", MODE="0666", GROUP="plugdev"
    
    # Run stuff when it's plugged in
    ACTION=="add",SUBSYSTEM=="tty",SUBSYSTEM­S=="usb",ATTRS{idVendor}=="0483",ATTRS{i­dProduct}=="5740",RUN+="/home/your/scrip­t.sh /dev/%k"
    
About

Avatar for Gordon @Gordon started