From: Grazvydas Ignotas Date: Sat, 8 Nov 2014 22:31:28 +0000 (+0200) Subject: udev: rules: make usbdevfs use plugdev group X-Git-Tag: sz_173~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b48b9d3d663570eec1cf619a64f0d90c5b087ef;p=openembedded.git udev: rules: make usbdevfs use plugdev group also rm dupe file --- diff --git a/recipes/udev/files/omap3-pandora/local.rules b/recipes/udev/files/omap3-pandora/local.rules deleted file mode 100644 index c94e0dfb27..0000000000 --- a/recipes/udev/files/omap3-pandora/local.rules +++ /dev/null @@ -1,33 +0,0 @@ -# There are a number of modifiers that are allowed to be used in some -# of the different fields. They provide the following subsitutions: -# -# %n the "kernel number" of the device. -# For example, 'sda3' has a "kernel number" of '3' -# %e the smallest number for that name which does not matches an existing node -# %k the kernel name for the device -# %M the kernel major number for the device -# %m the kernel minor number for the device -# %b the bus id for the device -# %c the string returned by the PROGRAM -# %s{filename} the content of a sysfs attribute -# %% the '%' char itself -# - -# Media automounting -SUBSYSTEM=="block", ACTION=="add" RUN+="/etc/udev/scripts/mount.sh" -SUBSYSTEM=="block", ACTION=="remove" RUN+="/etc/udev/scripts/mount.sh" - -# Handle network interface setup -SUBSYSTEM=="net", ACTION=="add" RUN+="/etc/udev/scripts/network.sh" -SUBSYSTEM=="net", ACTION=="remove" RUN+="/etc/udev/scripts/network.sh" - -# Local UDEV rule changes for the Pandora system. - -# Let all users access the event devices using EVDEV (the OpenPandora is not multiuser after all). -KERNEL=="event[0-9]", MODE="0666" -KERNEL=="mice", NAME="input/%k", MODE="0666" -KERNEL=="mouse[0-9]*", NAME="input/%k", MODE="0666" -KERNEL=="event[0-9]*", NAME="input/%k", MODE="0666" -KERNEL=="js[0-9]*", NAME="input/%k", MODE="0666" -KERNEL=="ts[0-9]*", NAME="input/%k", MODE="0666" -KERNEL=="uinput", NAME="input/%k", MODE="0666" diff --git a/recipes/udev/udev-151/omap3-pandora/local.rules b/recipes/udev/udev-151/omap3-pandora/local.rules index b867408ae0..dfe0100cb7 100644 --- a/recipes/udev/udev-151/omap3-pandora/local.rules +++ b/recipes/udev/udev-151/omap3-pandora/local.rules @@ -45,5 +45,8 @@ KERNEL=="js[0-9]*", NAME="input/%k", MODE="0666" KERNEL=="ts[0-9]*", NAME="input/%k", MODE="0666" KERNEL=="uinput", NAME="input/%k", MODE="0666" +# give usb to plugdev +SUBSYSTEMS=="usb", MODE="664", GROUP="plugdev" + # reserve fb2 for the system KERNEL=="fb2", ACTION=="add", MODE="0600" diff --git a/recipes/udev/udev_151.bb b/recipes/udev/udev_151.bb index 9d0ee104b1..05ce8f704c 100644 --- a/recipes/udev/udev_151.bb +++ b/recipes/udev/udev_151.bb @@ -3,7 +3,7 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod the hotplug package and requires a kernel not older than 2.6.12." LICENSE = "GPLv2+" -PR = "r23" +PR = "r24" # Untested DEFAULT_PREFERENCE = "-1"