From b36d64f1dbdcabc674adabe97e863af8a45fbf3b Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Sat, 27 Jul 2013 23:27:01 +0200 Subject: [PATCH] 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. --- contrib/50-am7xxx_mode_switch.rules | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 contrib/50-am7xxx_mode_switch.rules 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" -- 2.1.4