contrib: add a udev rule to invoke am7xxx-modeswitch
authorAntonio Ospite <ospite@studenti.unina.it>
Sat, 27 Jul 2013 21:27:01 +0000 (23:27 +0200)
committerAntonio Ospite <ospite@studenti.unina.it>
Sat, 27 Jul 2013 22:14:47 +0000 (00:14 +0200)
This will be useful on embedded systems like RaspberryPi or BeagleBone
where users may not want the whole usb-modeswitch package to be
installed just for libam7xxx.

contrib/50-am7xxx_mode_switch.rules [new file with mode: 0644]

diff --git a/contrib/50-am7xxx_mode_switch.rules b/contrib/50-am7xxx_mode_switch.rules
new file mode 100644 (file)
index 0000000..4210346
--- /dev/null
@@ -0,0 +1,3 @@
+# Rule to call am7xxx_mode_switch, useful when usb-modeswitch is not available.
+# Actions Microelectronics Co. Generic Display Device (Mass storage mode)
+ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1de1", ATTRS{idProduct}=="1101", MODE="0660", GROUP="plugdev", RUN+="am7xxx-modeswitch"