From: Antonio Ospite Date: Sat, 27 Jul 2013 21:27:01 +0000 (+0200) Subject: contrib: add a udev rule to invoke am7xxx-modeswitch X-Git-Tag: v0.1.4~9 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/b36d64f1dbdcabc674adabe97e863af8a45fbf3b?ds=sidebyside contrib: add a udev rule to invoke am7xxx-modeswitch 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. --- diff --git a/contrib/50-am7xxx_mode_switch.rules b/contrib/50-am7xxx_mode_switch.rules new file mode 100644 index 0000000..4210346 --- /dev/null +++ b/contrib/50-am7xxx_mode_switch.rules @@ -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"