From: Antonio Ospite Date: Fri, 2 Mar 2018 12:42:23 +0000 (+0100) Subject: contrib: add TAG+="uaccess" to udev rules X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/4b9cb6f91e33097c13b4dfa1b6f56a9510169c2a 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. --- 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"