From 2b48b9d3d663570eec1cf619a64f0d90c5b087ef Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Sun, 9 Nov 2014 00:31:28 +0200 Subject: [PATCH] udev: rules: make usbdevfs use plugdev group also rm dupe file --- recipes/udev/files/omap3-pandora/local.rules | 33 ------------------- .../udev/udev-151/omap3-pandora/local.rules | 3 ++ recipes/udev/udev_151.bb | 2 +- 3 files changed, 4 insertions(+), 34 deletions(-) delete mode 100644 recipes/udev/files/omap3-pandora/local.rules 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" -- 2.39.5