1 From 220b03f13836f256a28976e4887af89d4163dbc7 Mon Sep 17 00:00:00 2001
2 From: Antonio Ospite <ao2@ao2.it>
3 Date: Fri, 2 Mar 2018 11:21:33 +0100
4 Subject: [PATCH] contrib: add TAG+="uaccess" to udev rules
5 X-Face: z*RaLf`X<@C75u6Ig9}{oW$H;1_\2t5)({*|jhM<pyWR#k60!#=#>/Vb;]yA5<GWI5`6u&+
6 ;6b'@y|8w"wB;4/e!7wYYrcqdJFY,~%Gk_4]cq$Ei/7<j&N3ah(m`ku?pX.&+~:_/wC~dwn^)MizBG
7 !pE^+iDQQ1yC6^,)YDKkxDd!T>\I~93>J<_`<4)A{':UrE
9 This is suggested in https://wiki.debian.org/USB/GadgetSetup
11 Leave the GROUP="plugdev" mechanism for now, as it may still be used on
12 distributions which do not use systemd.
14 contrib/50-am7xxx_mode_switch.rules | 2 +-
15 contrib/55-am7xxx.rules | 12 ++++++------
16 2 files changed, 7 insertions(+), 7 deletions(-)
18 diff --git a/contrib/50-am7xxx_mode_switch.rules b/contrib/50-am7xxx_mode_switch.rules
19 index 4210346..50eb681 100644
20 --- a/contrib/50-am7xxx_mode_switch.rules
21 +++ b/contrib/50-am7xxx_mode_switch.rules
23 # Rule to call am7xxx_mode_switch, useful when usb-modeswitch is not available.
24 # Actions Microelectronics Co. Generic Display Device (Mass storage mode)
25 -ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1de1", ATTRS{idProduct}=="1101", MODE="0660", GROUP="plugdev", RUN+="am7xxx-modeswitch"
26 +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1de1", ATTRS{idProduct}=="1101", MODE="0660", GROUP="plugdev" TAG+="uaccess", RUN+="am7xxx-modeswitch"
27 diff --git a/contrib/55-am7xxx.rules b/contrib/55-am7xxx.rules
28 index 6dc7ccd..a8af702 100644
29 --- a/contrib/55-am7xxx.rules
30 +++ b/contrib/55-am7xxx.rules
33 -ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1de1", ATTRS{idProduct}=="c101", MODE="0660", GROUP="plugdev"
34 +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1de1", ATTRS{idProduct}=="c101", MODE="0660", GROUP="plugdev" TAG+="uaccess"
36 -ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1de1", ATTRS{idProduct}=="5501", MODE="0660", GROUP="plugdev"
37 +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1de1", ATTRS{idProduct}=="5501", MODE="0660", GROUP="plugdev" TAG+="uaccess"
38 # Aiptek PocketCinema T25
39 -ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="08ca", ATTRS{idProduct}=="2144", MODE="0660", GROUP="plugdev"
40 +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="08ca", ATTRS{idProduct}=="2144", MODE="0660", GROUP="plugdev" TAG+="uaccess"
41 # Philips/Sagemcom PicoPix 1020
42 -ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="21e7", ATTRS{idProduct}=="000e", MODE="0660", GROUP="plugdev"
43 +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="21e7", ATTRS{idProduct}=="000e", MODE="0660", GROUP="plugdev" TAG+="uaccess"
44 # Philips/Sagemcom PicoPix 2055
45 -ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="21e7", ATTRS{idProduct}=="0016", MODE="0660", GROUP="plugdev"
46 +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="21e7", ATTRS{idProduct}=="0016", MODE="0660", GROUP="plugdev" TAG+="uaccess"
47 # Philips/Sagemcom PicoPix 2330
48 -ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="21e7", ATTRS{idProduct}=="0019", MODE="0660", GROUP="plugdev"
49 +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="21e7", ATTRS{idProduct}=="0019", MODE="0660", GROUP="plugdev" TAG+="uaccess"