1 # BxS 2011.11.18 Changed hotplugscript path
2 # BxS 2011.11.10 Fixed for udev 175
3 # PRJ 2010.01.26 Add reference to "usb" for Ubuntu.
4 # PRJ 2010.01.22 Attempt to further simplify rules files requirements.
5 # PRJ 2009.08.18 Rules file simplified.
6 # PRJ 2009.07.15 Rules file created.
8 ENV{hotplugscript}="/opt/microchip/mplabx/mplab_ide/mplablibs/modules/lib/mchplinusbdevice"
10 ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="04d8", MODE="0666", RUN+="$env{hotplugscript} add"
12 ACTION=="remove", SUBSYSTEM=="usb", RUN+="$env{hotplugscript} remove $env{PRODUCT}"