From 4b9cb6f91e33097c13b4dfa1b6f56a9510169c2a Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 2 Mar 2018 13:42:23 +0100 Subject: [PATCH 1/1] contrib: add TAG+="uaccess" to udev rules This is suggested in https://wiki.debian.org/USB/GadgetSetup Leave the GROUP="plugdev" mechanism for now, as it may still be used on distributions which do not use systemd. --- contrib/50-am7xxx_mode_switch.rules | 2 +- contrib/55-am7xxx.rules | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/contrib/50-am7xxx_mode_switch.rules b/contrib/50-am7xxx_mode_switch.rules index 4210346..50eb681 100644 --- a/contrib/50-am7xxx_mode_switch.rules +++ b/contrib/50-am7xxx_mode_switch.rules @@ -1,3 +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" +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1de1", ATTRS{idProduct}=="1101", MODE="0660", GROUP="plugdev" TAG+="uaccess", RUN+="am7xxx-modeswitch" diff --git a/contrib/55-am7xxx.rules b/contrib/55-am7xxx.rules index 6dc7ccd..a8af702 100644 --- a/contrib/55-am7xxx.rules +++ b/contrib/55-am7xxx.rules @@ -1,12 +1,12 @@ # Acer C110 -ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1de1", ATTRS{idProduct}=="c101", MODE="0660", GROUP="plugdev" +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1de1", ATTRS{idProduct}=="c101", MODE="0660", GROUP="plugdev" TAG+="uaccess" # Acer C112 -ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1de1", ATTRS{idProduct}=="5501", MODE="0660", GROUP="plugdev" +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1de1", ATTRS{idProduct}=="5501", MODE="0660", GROUP="plugdev" TAG+="uaccess" # Aiptek PocketCinema T25 -ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="08ca", ATTRS{idProduct}=="2144", MODE="0660", GROUP="plugdev" +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="08ca", ATTRS{idProduct}=="2144", MODE="0660", GROUP="plugdev" TAG+="uaccess" # Philips/Sagemcom PicoPix 1020 -ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="21e7", ATTRS{idProduct}=="000e", MODE="0660", GROUP="plugdev" +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="21e7", ATTRS{idProduct}=="000e", MODE="0660", GROUP="plugdev" TAG+="uaccess" # Philips/Sagemcom PicoPix 2055 -ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="21e7", ATTRS{idProduct}=="0016", MODE="0660", GROUP="plugdev" +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="21e7", ATTRS{idProduct}=="0016", MODE="0660", GROUP="plugdev" TAG+="uaccess" # Philips/Sagemcom PicoPix 2330 -ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="21e7", ATTRS{idProduct}=="0019", MODE="0660", GROUP="plugdev" +ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="21e7", ATTRS{idProduct}=="0019", MODE="0660", GROUP="plugdev" TAG+="uaccess" -- 2.1.4