Polish up framework to auto-detect Mustang

This commit is contained in:
hirsch 2016-07-31 19:17:30 -04:00
parent 32b6bdde02
commit 45feec3d78
4 changed files with 53 additions and 48 deletions

View file

@ -1,2 +1,3 @@
# Must customize vendor and product id for your controller
ACTION=="add|change", SUBSYSTEM=="usb", ATTRS{idVendor}=="0763", ATTRS{idProduct}=="0160", RUN+="/bin/bash -c '/bin/echo /usr/local/bin/mustang_bridge_start | /usr/bin/at now'"
ACTION=="remove", ENV{ID_VENDOR_ID}=="0763", ENV{ID_MODEL_ID}=="0160", ENV{DEVTYPE}=="usb_device", RUN+="/usr/local/bin/mustang_bridge_stop"