diff options
Diffstat (limited to 'recipes/udev')
-rwxr-xr-x | recipes/udev/files/init | 212 | ||||
-rw-r--r-- | recipes/udev/files/local.rules | 22 | ||||
-rw-r--r-- | recipes/udev/files/omap3-pandora/local.rules | 27 | ||||
-rw-r--r-- | recipes/udev/files/permissions.rules | 79 | ||||
-rw-r--r-- | recipes/udev/files/udev.rules | 98 | ||||
-rw-r--r-- | recipes/udev/udev-141/default | 4 | ||||
-rw-r--r-- | recipes/udev/udev-141/local.rules | 35 | ||||
-rw-r--r-- | recipes/udev/udev-141/run.rules | 14 | ||||
-rw-r--r-- | recipes/udev/udev-151/bug/10-mx31.rules | 49 | ||||
-rw-r--r-- | recipes/udev/udev-151/bug/30-BUG.rules | 26 | ||||
-rw-r--r-- | recipes/udev/udev-151/bug/bmi_eventpipe.sh | 8 | ||||
-rw-r--r-- | recipes/udev/udev-151/cache | 24 | ||||
-rw-r--r-- | recipes/udev/udev-151/default | 4 | ||||
-rw-r--r-- | recipes/udev/udev-151/init | 75 | ||||
-rw-r--r-- | recipes/udev/udev-151/omap3-pandora/local.rules | 40 | ||||
-rw-r--r-- | recipes/udev/udev-151/run.rules | 14 | ||||
-rw-r--r-- | recipes/udev/udev-154/bug/10-mx31.rules | 49 | ||||
-rw-r--r-- | recipes/udev/udev-154/bug/30-BUG.rules | 26 | ||||
-rw-r--r-- | recipes/udev/udev-154/bug/bmi_eventpipe.sh | 8 | ||||
-rw-r--r-- | recipes/udev/udev-154/cache | 24 | ||||
-rw-r--r-- | recipes/udev/udev-154/default | 4 | ||||
-rw-r--r-- | recipes/udev/udev-154/init | 75 | ||||
-rw-r--r-- | recipes/udev/udev-154/local.rules | 35 | ||||
-rw-r--r-- | recipes/udev/udev-154/omap3-pandora/local.rules | 40 | ||||
-rw-r--r-- | recipes/udev/udev-154/run.rules | 14 | ||||
-rw-r--r-- | recipes/udev/udev-154/udev-replace-le16toh.patch | 21 | ||||
-rw-r--r-- | recipes/udev/udev-154/udev-replace-lutimes.patch | 25 | ||||
-rw-r--r-- | recipes/udev/udev-154/udev.rules | 113 | ||||
-rw-r--r-- | recipes/udev/udev-162/bug/10-mx31.rules | 49 | ||||
-rw-r--r-- | recipes/udev/udev-162/bug/30-BUG.rules | 26 | ||||
-rw-r--r-- | recipes/udev/udev-162/bug/bmi_eventpipe.sh | 8 | ||||
-rw-r--r-- | recipes/udev/udev-162/cache | 24 | ||||
-rw-r--r-- | recipes/udev/udev-162/default | 4 | ||||
-rw-r--r-- | recipes/udev/udev-162/init | 75 | ||||
-rw-r--r-- | recipes/udev/udev-162/local.rules | 35 | ||||
-rw-r--r-- | recipes/udev/udev-162/omap3-pandora/local.rules | 40 | ||||
-rw-r--r-- | recipes/udev/udev-162/run.rules | 14 | ||||
-rw-r--r-- | recipes/udev/udev-162/udev-replace-le16toh.patch | 21 | ||||
-rw-r--r-- | recipes/udev/udev-162/udev-replace-lutimes.patch | 25 | ||||
-rw-r--r-- | recipes/udev/udev-162/udev.rules | 113 | ||||
-rw-r--r-- | recipes/udev/udev-165/bug/10-mx31.rules | 49 | ||||
-rw-r--r-- | recipes/udev/udev-165/bug/30-BUG.rules | 26 | ||||
-rw-r--r-- | recipes/udev/udev-165/bug/bmi_eventpipe.sh | 8 | ||||
-rw-r--r-- | recipes/udev/udev-165/cache | 24 | ||||
-rw-r--r-- | recipes/udev/udev-165/default | 4 | ||||
-rw-r--r-- | recipes/udev/udev-165/init | 75 | ||||
-rw-r--r-- | recipes/udev/udev-165/local.rules | 35 | ||||
-rw-r--r-- | recipes/udev/udev-165/omap3-pandora/local.rules | 40 | ||||
-rw-r--r-- | recipes/udev/udev-165/permissions.rules | 110 | ||||
-rw-r--r-- | recipes/udev/udev-165/run.rules | 14 | ||||
-rw-r--r-- | recipes/udev/udev-165/udev-replace-le16toh.patch | 21 | ||||
-rw-r--r-- | recipes/udev/udev-165/udev-replace-lutimes.patch | 25 | ||||
-rw-r--r-- | recipes/udev/udev-165/udev.rules | 113 | ||||
-rw-r--r-- | recipes/udev/udev/50-hostap_cs.rules (renamed from recipes/udev/files/50-hostap_cs.rules) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/akita/default (renamed from recipes/udev/files/akita/default) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/akita/mount.blacklist (renamed from recipes/udev/files/akita/mount.blacklist) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/angstrom/mount.sh (renamed from recipes/udev/files/angstrom/mount.sh) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/bug/10-mx31.rules (renamed from recipes/udev/udev-141/bug/10-mx31.rules) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/bug/30-BUG.rules (renamed from recipes/udev/udev-141/bug/30-BUG.rules) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/bug/bmi_eventpipe.sh (renamed from recipes/udev/udev-141/bug/bmi_eventpipe.sh) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/c7x0/default (renamed from recipes/udev/files/c7x0/default) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/c7x0/mount.blacklist (renamed from recipes/udev/files/c7x0/mount.blacklist) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/cache (renamed from recipes/udev/udev-141/cache) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/collie/default (renamed from recipes/udev/files/collie/default) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/collie/mount.blacklist (renamed from recipes/udev/files/collie/mount.blacklist) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/default (renamed from recipes/udev/udev-124/default) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/devfs-udev.rules (renamed from recipes/udev/files/devfs-udev.rules) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/hipox/default (renamed from recipes/udev/files/poodle/default) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/init (renamed from recipes/udev/udev-141/init) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/links.conf (renamed from recipes/udev/files/links.conf) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/local.rules (renamed from recipes/udev/udev-151/local.rules) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/mount.blacklist (renamed from recipes/udev/files/mount.blacklist) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/mount.sh (renamed from recipes/udev/files/mount.sh) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/network.sh (renamed from recipes/udev/files/network.sh) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/noasmlinkage.patch (renamed from recipes/udev/files/noasmlinkage.patch) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/nokia900/10-cmt_speech.rules (renamed from recipes/udev/files/nokia900/10-cmt_speech.rules) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/nokia900/70-persistent-net.rules (renamed from recipes/udev/files/nokia900/70-persistent-net.rules) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/nokia900/nokia-n900-mac-hack.sh (renamed from recipes/udev/files/nokia900/nokia-n900-mac-hack.sh) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/nokia900/udev-rules-nokia-n900-hacks.rules (renamed from recipes/udev/files/nokia900/udev-rules-nokia-n900-hacks.rules) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/nokia900/udev-rules-nokia-n900-snd.rules (renamed from recipes/udev/files/nokia900/udev-rules-nokia-n900-snd.rules) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/omap3-pandora/local.rules (renamed from recipes/udev/udev-141/omap3-pandora/local.rules) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/permissions.rules (renamed from recipes/udev/udev-162/permissions.rules) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/poodle/default (renamed from recipes/udev/files/spitz/default) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/poodle/mount.blacklist (renamed from recipes/udev/files/poodle/mount.blacklist) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/run.rules (renamed from recipes/udev/udev-124/run.rules) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/shr/mount.blacklist (renamed from recipes/udev/files/shr/mount.blacklist) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/slugos/mount.blacklist (renamed from recipes/udev/files/slugos/mount.blacklist) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/slugos/mount.sh (renamed from recipes/udev/files/slugos/mount.sh) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/spitz/default (renamed from recipes/udev/files/tosa/default) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/spitz/mount.blacklist (renamed from recipes/udev/files/spitz/mount.blacklist) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/tosa/default (renamed from recipes/udev/udev-141/hipox/default) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/tosa/mount.blacklist (renamed from recipes/udev/files/tosa/mount.blacklist) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/udev-compat-wrapper-patch (renamed from recipes/udev/files/udev-compat-wrapper-patch) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/udev-replace-le16toh.patch (renamed from recipes/udev/udev-151/udev-replace-le16toh.patch) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/udev-replace-lutimes.patch (renamed from recipes/udev/udev-151/udev-replace-lutimes.patch) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/udev.rules (renamed from recipes/udev/udev-151/udev.rules) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/udev_network_queue.sh (renamed from recipes/udev/files/udev_network_queue.sh) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/udevsynthesize.patch (renamed from recipes/udev/files/udevsynthesize.patch) | 0 | ||||
-rw-r--r-- | recipes/udev/udev/udevsynthesize.sh (renamed from recipes/udev/files/udevsynthesize.sh) | 0 |
99 files changed, 0 insertions, 2143 deletions
diff --git a/recipes/udev/files/init b/recipes/udev/files/init deleted file mode 100755 index a13b9afcd5..0000000000 --- a/recipes/udev/files/init +++ /dev/null @@ -1,212 +0,0 @@ -#!/bin/sh - -UDEVSTART=/sbin/udevstart - -# defaults -tmpfs_size="2M" -udev_root="/dev" - -[ -x $UDEVSTART ] || exit 0 - -. /etc/udev/udev.conf - -############################################################################## - -# we need to unmount /dev/pts/ and remount it later over the tmpfs -unmount_devpts() { - if mountpoint -q /dev/pts/; then - umount -l /dev/pts/ - fi - - if mountpoint -q /dev/shm/; then - umount -l /dev/shm/ - fi -} - -# mount a tmpfs over /dev, if somebody did not already do it -mount_tmpfs() { - if grep -E -q "^[^[:space:]]+ /dev tmpfs" /proc/mounts; then - return 0 - fi - - # /dev/.static/dev/ is used by MAKEDEV to access the real /dev/ directory. - # /etc/udev/ is recycled as a temporary mount point because it's the only - # directory which is guaranteed to be available. - mount -n -o bind /dev /etc/udev - - if ! mount -n -o size=$tmpfs_size,mode=0755 -t tmpfs tmpfs /dev; then - umount /etc/udev - echo "udev requires tmpfs support, not started." - exit 1 - fi - - # using ln to test if /dev works, because touch is in /usr/bin/ - if ln -s test /dev/test-file; then - rm /dev/test-file - else - echo "udev requires tmpfs support, not started." - umount /etc/udev - umount /dev - exit 1 - fi - - mkdir -p /dev/.static/dev - chmod 700 /dev/.static/ - # The mount options in busybox are non-standard... - if test -x /bin/mount.util-linux - then - /bin/mount.util-linux --move /etc/udev /dev/.static/dev - elif test -x /bin/busybox - then - busybox mount -n -o move /etc/udev /dev/.static/dev - else - echo "udev requires an identifiable mount command, not started." - umount /etc/udev - umount /dev - exit 1 - fi -} - -# I hate this hack. -- Md -make_extra_nodes() { - [ -e /etc/udev/links.conf ] || return 0 - grep '^[^#]' /etc/udev/links.conf | \ - while read type name arg1; do - [ "$type" -a "$name" -a ! -e "/dev/$name" -a ! -L "/dev/$name" ] ||continue - case "$type" in - L) ln -s $arg1 /dev/$name ;; - D) mkdir -p /dev/$name ;; - M) mknod -m 600 /dev/$name $arg1 ;; - *) echo "links.conf: unparseable line ($type $name $arg1)" ;; - esac - done -} - -# this function is duplicated in preinst, postinst and d-i -supported_kernel() { - case "$(uname -r)" in - 2.[012345].*|2.6.[0-9]|2.6.[0-9][!0-9]*) return 1 ;; - 2.6.1[01]|2.6.1[01][!0-9]*) return 1 ;; - esac - return 0 -} - -# shell version of /usr/bin/tty -my_tty() { - [ -x /bin/readlink ] || return 0 - [ -e /proc/self/fd/0 ] || return 0 - readlink --silent /proc/self/fd/0 || true -} - -warn_if_interactive() { - if [ "$RUNLEVEL" = "S" -a "$PREVLEVEL" = "N" ]; then - return 0 - fi - - TTY=$(my_tty) - if [ -z "$TTY" -o "$TTY" = "/dev/console" ]; then - return 0 - fi - - printf "\n\n\nIt has been detected that the command\n\n\t$0 $*\n\n" - printf "has been run from an interactive shell.\n" - printf "It will probably not do what you expect, so this script will wait\n" - printf "60 seconds before continuing. Press ^C to stop it.\n" - printf "RUNNING THIS COMMAND IS HIGHLY DISCOURAGED!\n\n\n\n" - sleep 60 -} - -############################################################################## - -if ! supported_kernel; then - echo "udev requires a kernel >= 2.6.12, not started." - exit 1 -fi - -if [ ! -e /proc/filesystems ]; then - echo "udev requires a mounted procfs, not started." - exit 1 -fi - -if ! grep -q '[[:space:]]tmpfs$' /proc/filesystems; then - echo "udev requires tmpfs support, not started." - exit 1 -fi - -if [ ! -d /sys/class/ ]; then - echo "udev requires a mounted sysfs, not started." - exit 1 -fi - -if [ ! -e /proc/sys/kernel/hotplug ] && [ ! -e /sys/kernel/uevent_helper ]; then - echo "udev requires hotplug support, not started." - exit 1 -fi - -############################################################################## - -# When modifying this script, do not forget that between the time that -# the new /dev has been mounted and udevstart has been run there will be -# no /dev/null. This also means that you cannot use the "&" shell command. - -case "$1" in - start) - if [ -e "$udev_root/.udevdb" ]; then - if mountpoint -q /dev/; then - TMPFS_MOUNTED=1 - else - echo ".udevdb already exists on the old $udev_root!" - fi - fi - warn_if_interactive - - #echo /sbin/udevsend > /proc/sys/kernel/hotplug - if [ -e /sys/kernel/uevent_helper ] ; then - echo "" > /sys/kernel/uevent_helper - else - echo "" > /proc/sys/kernel/hotplug - fi - udevsend - if [ "$UDEV_DISABLED" = "yes" ]; then - echo "udev disabled on the kernel command line, not started." - exit 0 - fi - - if [ ! "$TMPFS_MOUNTED" ]; then - unmount_devpts - mount_tmpfs - [ -d /proc/1 ] || mount -n /proc - # if this directory is not present /dev will not be updated by udev - mkdir /dev/.udevdb/ - echo "Creating initial device nodes..." - udevstart - fi - make_extra_nodes - ;; - stop) - warn_if_interactive - start-stop-daemon --stop --exec /sbin/udevd --quiet - unmount_devpts - if [ -d /dev/.static/dev/ ]; then - umount -l /dev/.static/dev/ || true - fi - echo "Unmounting /dev..." - # unmounting with -l should never fail - if ! umount -l /dev; then - exit 1 - fi - ;; - restart|force-reload) - start-stop-daemon --stop --exec /sbin/udevd --quiet - log_begin_msg "Recreating device nodes..." - udevstart - make_extra_nodes - log_end_msg 0 - ;; - *) - echo "Usage: /etc/init.d/udev {start|stop|restart|force-reload}" - exit 1 - ;; -esac - -exit 0 diff --git a/recipes/udev/files/local.rules b/recipes/udev/files/local.rules deleted file mode 100644 index 5f2efbeb0c..0000000000 --- a/recipes/udev/files/local.rules +++ /dev/null @@ -1,22 +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" diff --git a/recipes/udev/files/omap3-pandora/local.rules b/recipes/udev/files/omap3-pandora/local.rules deleted file mode 100644 index 266c3ff859..0000000000 --- a/recipes/udev/files/omap3-pandora/local.rules +++ /dev/null @@ -1,27 +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"
\ No newline at end of file diff --git a/recipes/udev/files/permissions.rules b/recipes/udev/files/permissions.rules deleted file mode 100644 index efbe568a2b..0000000000 --- a/recipes/udev/files/permissions.rules +++ /dev/null @@ -1,79 +0,0 @@ -# default permissions for block devices -SUBSYSTEM=="block", GROUP="disk" -SUBSYSTEM=="block", SYSFS{removable}=="1", GROUP="floppy" - -# IDE devices -BUS=="ide", KERNEL=="hd[a-z]", SYSFS{removable}="1", \ - PROGRAM="/bin/cat /proc/ide/%k/media", RESULT=="cdrom*", GROUP="cdrom" -BUS=="ide", KERNEL=="ht[0-9]*", GROUP="tape" -BUS=="ide", KERNEL=="nht[0-9]*", GROUP="tape" - -# SCSI devices -BUS=="scsi", SYSFS{type}=="1", GROUP="tape" -BUS=="scsi", SYSFS{type}=="5", GROUP="cdrom" - -# USB devices -BUS=="usb", KERNEL=="legousbtower*", MODE="0666" -BUS=="usb", KERNEL=="lp[0-9]*", GROUP="lp" - -# serial devices -SUBSYSTEM=="tty", GROUP="dialout" -SUBSYSTEM=="capi", GROUP="dialout" -SUBSYSTEM=="slamr", GROUP="dialout" - -# vc devices (all members of the tty subsystem) -KERNEL=="ptmx", MODE="0666", GROUP="root" -KERNEL=="console", MODE="0600", GROUP="root" -KERNEL=="tty", MODE="0666", GROUP="root" -KERNEL=="tty[0-9]*", GROUP="root" -KERNEL=="pty*", MODE="0666", GROUP="tty" - -# video devices -SUBSYSTEM=="video4linux", GROUP="video" -SUBSYSTEM=="drm", GROUP="video" -SUBSYSTEM=="dvb", GROUP="video" -SUBSYSTEM=="em8300", GROUP="video" -SUBSYSTEM=="graphics", GROUP="video" -SUBSYSTEM=="nvidia", GROUP="video" - -# misc devices -KERNEL=="random", MODE="0666" -KERNEL=="urandom", MODE="0444" -KERNEL=="mem", MODE="0640", GROUP="kmem" -KERNEL=="kmem", MODE="0640", GROUP="kmem" -KERNEL=="port", MODE="0640", GROUP="kmem" -KERNEL=="full", MODE="0666" -KERNEL=="null", MODE="0666" -KERNEL=="zero", MODE="0666" -KERNEL=="inotify", MODE="0666" -KERNEL=="sgi_fetchop", MODE="0666" -KERNEL=="sonypi", MODE="0666" -KERNEL=="agpgart", GROUP="video" -KERNEL=="rtc", MODE="0660", GROUP="audio" - -KERNEL=="cdemu[0-9]*", GROUP="cdrom" -KERNEL=="pktcdvd[0-9]*", GROUP="cdrom" -KERNEL=="pktcdvd", MODE="0644" - -# printers and parallel devices -SUBSYSTEM=="printer", GROUP="lp" -SUBSYSTEM=="ppdev", GROUP="lp" -KERNEL=="pt[0-9]*", GROUP="tape" -KERNEL=="pht[0-9]*", GROUP="tape" - -# sound devices -SUBSYSTEM=="sound", GROUP="audio" - -# ieee1394 devices -KERNEL=="raw1394", GROUP="disk" -KERNEL=="dv1394*", GROUP="video" -KERNEL=="video1394*", GROUP="video" - -# input devices -KERNEL=="event[0-9]*", MODE="0664" -KERNEL=="js[0-9]*", MODE="0664" - -# AOE character devices -SUBSYSTEM=="aoe", MODE="0220", GROUP="disk" -SUBSYSTEM=="aoe", KERNEL=="err", MODE="0440" - diff --git a/recipes/udev/files/udev.rules b/recipes/udev/files/udev.rules deleted file mode 100644 index 5c566f6cef..0000000000 --- a/recipes/udev/files/udev.rules +++ /dev/null @@ -1,98 +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 -# - -# SCSI devices -BUS=="scsi", KERNEL=="sr[0-9]*", NAME="scd%n", SYMLINK+="sr%n" - -# USB devices -BUS=="usb", KERNEL=="auer[0-9]*", NAME="usb/%k" -BUS=="usb", KERNEL=="cpad[0-9]*", NAME="usb/%k" -BUS=="usb", KERNEL=="dabusb*", NAME="usb/%k" -BUS=="usb", KERNEL=="hiddev*", NAME="usb/%k" -BUS=="usb", KERNEL=="legousbtower*", NAME="usb/%k" -BUS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k" -BUS=="usb", KERNEL=="ttyUSB*", SYSFS{product}=="Palm Handheld*", \ - SYMLINK+="pilot" - -# usbfs-like devices -SUBSYSTEM=="usb_device", \ - PROGRAM="/bin/sh -c 'export X=%k; export X=$${X#usbdev}; export B=$${X%%%%.*}; export D=$${X#*.}; echo bus/usb/$$B/$$D'", SYMLINK+="%c" - -# serial devices -KERNEL=="capi", NAME="capi20", SYMLINK+="isdn/capi20" -KERNEL=="capi[0-9]*", NAME="capi/%n" - -# video devices -KERNEL=="card[0-9]*", NAME="dri/%k" - -# misc devices -KERNEL=="hw_random", NAME="hwrng" -KERNEL=="tun", NAME="net/%k" - -KERNEL=="cdemu[0-9]*", NAME="cdemu/%n" -KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%n" -KERNEL=="pktcdvd", NAME="pktcdvd/control" - -KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid" -KERNEL=="msr[0-9]*", NAME="cpu/%n/msr" -KERNEL=="microcode", NAME="cpu/microcode" - -KERNEL=="umad*", NAME="infiniband/%k" -KERNEL=="issm*", NAME="infiniband/%k" -KERNEL=="uverbs*", NAME="infiniband/%k" -KERNEL=="ucm", NAME="infiniband/%k" - -KERNEL=="buzzer", NAME="misc/buzzer" - -# ALSA devices -KERNEL=="controlC[0-9]*", NAME="snd/%k" -KERNEL=="hwC[D0-9]*", NAME="snd/%k" -KERNEL=="pcmC[D0-9cp]*", NAME="snd/%k" -KERNEL=="midiC[D0-9]*", NAME="snd/%k" -KERNEL=="timer", NAME="snd/%k" -KERNEL=="seq", NAME="snd/%k" - -# ieee1394 devices -KERNEL=="dv1394*", NAME="dv1394/%n" -KERNEL=="video1394*", NAME="video1394/%n" - -# input devices -KERNEL=="mice", NAME="input/%k" -KERNEL=="mouse[0-9]*", NAME="input/%k" -KERNEL=="event[0-9]*", NAME="input/%k" -KERNEL=="js[0-9]*", NAME="input/%k" -KERNEL=="ts[0-9]*", NAME="input/%k" -KERNEL=="uinput", NAME="input/%k" - -# Zaptel -KERNEL=="zapctl", NAME="zap/ctl" -KERNEL=="zaptimer", NAME="zap/timer" -KERNEL=="zapchannel", NAME="zap/channel" -KERNEL=="zappseudo", NAME="zap/pseudo" -KERNEL=="zap[0-9]*", NAME="zap/%n" - -# AOE character devices -SUBSYSTEM=="aoe", KERNEL=="discover", NAME="etherd/%k" -SUBSYSTEM=="aoe", KERNEL=="err", NAME="etherd/%k" -SUBSYSTEM=="aoe", KERNEL=="interfaces", NAME="etherd/%k" - -# device mapper creates its own device nodes, so ignore these -KERNEL=="dm-[0-9]*", OPTIONS+="ignore_device" -KERNEL=="device-mapper", NAME="mapper/control" - -KERNEL="rfcomm[0-9]*", NAME="%k", GROUP="users", MODE="0660" - -# Firmware Helper -ACTION=="add", SUBSYSTEM=="firmware", RUN+="/sbin/firmware_helper" diff --git a/recipes/udev/udev-141/default b/recipes/udev/udev-141/default deleted file mode 100644 index 5c4937a9a0..0000000000 --- a/recipes/udev/udev-141/default +++ /dev/null @@ -1,4 +0,0 @@ -# Default for /etc/init.d/udev - -# Comment this out to disable device cache -DEVCACHE="/etc/dev.tar" diff --git a/recipes/udev/udev-141/local.rules b/recipes/udev/udev-141/local.rules deleted file mode 100644 index 4e80a71d80..0000000000 --- a/recipes/udev/udev-141/local.rules +++ /dev/null @@ -1,35 +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" - -# The first rtc device is symlinked to /dev/rtc -KERNEL=="rtc0", SYMLINK+="rtc" - -#The first framebuffer is symlinked to /dev/fb -KERNEL=="fb0", SYMLINK+="fb" - -# Try and modprobe for drivers for new hardware -ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}" - -# Create a symlink to any touchscreen input device -SUBSYSTEM=="input", KERNEL=="event[0-9]*", SYSFS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0" -SUBSYSTEM=="input", KERNEL=="event[0-9]*", SYSFS{modalias}=="ads7846", SYMLINK+="input/touchscreen0" diff --git a/recipes/udev/udev-141/run.rules b/recipes/udev/udev-141/run.rules deleted file mode 100644 index 75d71375bb..0000000000 --- a/recipes/udev/udev-141/run.rules +++ /dev/null @@ -1,14 +0,0 @@ -# debugging monitor -RUN+="socket:/org/kernel/udev/monitor" - -# run a command on remove events -ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}" - -# ignore the events generated by virtual consoles -KERNEL=="ptmx", OPTIONS+="last_rule" -KERNEL=="console", OPTIONS+="last_rule" -KERNEL=="tty" , OPTIONS+="last_rule" -KERNEL=="tty[0-9]*", OPTIONS+="last_rule" -KERNEL=="pty*", OPTIONS+="last_rule" -SUBSYSTEM=="vc", OPTIONS+="last_rule" - diff --git a/recipes/udev/udev-151/bug/10-mx31.rules b/recipes/udev/udev-151/bug/10-mx31.rules deleted file mode 100644 index de427fc8b2..0000000000 --- a/recipes/udev/udev-151/bug/10-mx31.rules +++ /dev/null @@ -1,49 +0,0 @@ -KERNEL=="ttyS[0-9]", NAME="tts/%n", SYMLINK+="tts%n" -KERNEL=="ttymxc[0-9]", NAME="ttymxc/%n", SYMLINK+="ttymxc%n" - -KERNEL=="mxc_mu[0-9]", NAME="mxc_mu/%n", SYMLINK+="mxc_mu%n" -KERNEL=="fb*", NAME="fb/%n", SYMLINK+="fb%n" -KERNEL=="i2c*", NAME="i2c/%n" -KERNEL=="mxc_ipc*", NAME="mxc_ipc/%n" -KERNEL=="video*", NAME="v4l/video%n" - -KERNEL=="rtc", NAME="misc/rtc" -KERNEL=="watchdog", NAME="misc/watchdog" - -KERNEL=="mc13783_adc", NAME="mc13783_adc", SYMLINK+="ts" -KERNEL=="pmic_adc", NAME="pmic_adc", SYMLINK+="ts" - -# The long class name gets cut off to be mc13783_connectiv in -# /sys/class/mc13783_connectivity/mc13783_connectivit -KERNEL=="mc13783_connectiv*", NAME="mc13783_connectivity" - -KERNEL=="mxc_ssi[0-9]*", NAME="mxc_ssi/%n", SYMLINK+="mxc_ssi%n" -KERNEL=="spi[0-9]*", NAME="spi/%n", SYMLINK+="spi%n" - -KERNEL=="mtdblock*", NAME="mtdblock/%n" SYMLINK+="mtdblock%n" -KERNEL=="mtd[0-9]", NAME="mtd/%n" - -# A more elegant way of doing this must exist... -KERNEL=="mtd0ro", NAME="mtd/0ro" -KERNEL=="mtd1ro", NAME="mtd/1ro" -KERNEL=="mtd2ro", NAME="mtd/2ro" -KERNEL=="mtd3ro", NAME="mtd/3ro" -KERNEL=="mtd4ro", NAME="mtd/4ro" -KERNEL=="mtd5ro", NAME="mtd/5ro" -KERNEL=="mtd6ro", NAME="mtd/6ro" -KERNEL=="mtd7ro", NAME="mtd/7ro" -KERNEL=="mtd8ro", NAME="mtd/8ro" -KERNEL=="mtd9ro", NAME="mtd/9ro" - -# Note that we want /dev/dsp linked to /dev/sound/dsp1... -KERNEL=="dsp", NAME="sound/dsp" -KERNEL=="dspW", NAME="sound/dspW" -KERNEL=="dsp1", NAME="sound/dsp1", SYMLINK+="dsp" -KERNEL=="mixer", NAME="sound/mixer", SYMLINK+="mixer" -KERNEL=="sequencer", NAME="sound/sequencer" -KERNEL=="sequencer2", NAME="sound/sequencer2" - -KERNEL=="ram[0-9]*", NAME="ram/%n", SYMLINK+="ram%n" - -KERNEL=="dvfs_dptc", NAME="dvfs_dptc", SYMLINK+="dptc dvfs" - diff --git a/recipes/udev/udev-151/bug/30-BUG.rules b/recipes/udev/udev-151/bug/30-BUG.rules deleted file mode 100644 index 06faa6bb91..0000000000 --- a/recipes/udev/udev-151/bug/30-BUG.rules +++ /dev/null @@ -1,26 +0,0 @@ -## -## BUG/BMI specific -## -KERNEL=="event*", ATTRS{name}=="bugnav", SYMLINK+="input/bugnav" -KERNEL=="event*", ATTRS{name}=="bmi_motion", SYMLINK+="input/bmi_motion" -KERNEL=="event*", ATTRS{name}=="bug_cam", SYMLINK+="input/bmi_cam" -KERNEL=="event*", ATTRS{name}=="bmi_audio_status_m1", SYMLINK+="input/bmi_audio_m1" -KERNEL=="event*", ATTRS{name}=="bmi_audio_status_m2", SYMLINK+="input/bmi_audio_m2" -KERNEL=="event*", ATTRS{name}=="bmi_audio_status_m3", SYMLINK+="input/bmi_audio_m3" -KERNEL=="event*", ATTRS{name}=="bmi_audio_status_m4", SYMLINK+="input/bmi_audio_m4" -DEVPATH=="/devices/platform/bugfb.0", SYMLINK+="bugfb" -KERNEL=="rtc0", SYMLINK+="rtc" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts0", SYMLINK+="input/bmi_lcd_ts0" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts1", SYMLINK+="input/bmi_lcd_ts1" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts2", SYMLINK+="input/bmi_lcd_ts2" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts3", SYMLINK+="input/bmi_lcd_ts3" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts4", SYMLINK+="input/bmi_lcd_ts4" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts5", SYMLINK+="input/bmi_lcd_ts5" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts6", SYMLINK+="input/bmi_lcd_ts6" -ACTION=="add", DEVPATH=="/devices/conn*", RUN+="/bin/sh /etc/udev/scripts/bmi_eventpipe.sh" -ACTION=="remove", DEVPATH=="/devices/conn*", RUN+="/bin/sh /etc/udev/scripts/bmi_eventpipe.sh" -# -# For USB PBPSD, which we've arbitrarily decided will be module F001 -# -ACTION=="remove", SUBSYSTEM=="usb", DRIVERS=="psd_driver", ENV{BMIBUS_PRODUCT}="F001", ENV{BMIBUS_SLOT}="%n", RUN+="/bin/sh /etc/udev/scripts/bmi_eventpipe.sh" -ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="psd_driver", ENV{BMIBUS_PRODUCT}="F001", ENV{BMIBUS_SLOT}="%n", RUN+="/bin/sh /etc/udev/scripts/bmi_eventpipe.sh" diff --git a/recipes/udev/udev-151/bug/bmi_eventpipe.sh b/recipes/udev/udev-151/bug/bmi_eventpipe.sh deleted file mode 100644 index acbae56118..0000000000 --- a/recipes/udev/udev-151/bug/bmi_eventpipe.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -# -# This script passes BMI state variables to the running JVM. -# -if [ ${BMIBUS_PRODUCT} != "" ] && [ ${BMIBUS_SLOT} != "" ] && [ ${ACTION} != "" ]; -then - echo $BMIBUS_PRODUCT 0 $BMIBUS_SLOT $ACTION > /tmp/eventpipe -fi diff --git a/recipes/udev/udev-151/cache b/recipes/udev/udev-151/cache deleted file mode 100644 index 6936170b85..0000000000 --- a/recipes/udev/udev-151/cache +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -e - -export TZ=/etc/localtime - -[ -f /etc/default/udev ] && . /etc/default/udev - -echo "Caching udev devnodes" - -if [ "$DEVCACHE" != "" ]; then - echo -n "Populating dev cache" - (cd /; tar cf $DEVCACHE dev) - mv /tmp/uname /etc/udev/saved.uname - mv /tmp/cmdline /etc/udev/saved.cmdline - mv /tmp/devices /etc/udev/saved.devices - mv /tmp/atags /etc/udev/saved.atags - echo -else - rm -f /tmp/uname - rm -f /tmp/cmdline - rm -f /tmp/devices - rm -f /tmp/atags -fi - -exit 0 diff --git a/recipes/udev/udev-151/default b/recipes/udev/udev-151/default deleted file mode 100644 index 5c4937a9a0..0000000000 --- a/recipes/udev/udev-151/default +++ /dev/null @@ -1,4 +0,0 @@ -# Default for /etc/init.d/udev - -# Comment this out to disable device cache -DEVCACHE="/etc/dev.tar" diff --git a/recipes/udev/udev-151/init b/recipes/udev/udev-151/init deleted file mode 100644 index c0ecdfc50b..0000000000 --- a/recipes/udev/udev-151/init +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/sh -e - -### BEGIN INIT INFO -# Provides: udev -# Required-Start: mountvirtfs -# Required-Stop: -# Default-Start: S -# Default-Stop: -# Short-Description: Start udevd, populate /dev and load drivers. -### END INIT INFO - -export TZ=/etc/localtime - -[ -d /sys/class ] || exit 1 -[ -r /proc/mounts ] || exit 1 -[ -x /sbin/udevd ] || exit 1 -[ -f /etc/default/udev ] && . /etc/default/udev -[ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf - -kill_udevd() { - if [ -x /sbin/pidof ]; then - pid=`/sbin/pidof -x udevd` - [ -n "$pid" ] && kill $pid - fi -} - -export ACTION=add -# propagate /dev from /sys -echo "Starting udev" - -# mount the tmpfs on /dev, if not already done -LANG=C awk "\$2 == \"/dev\" && \$3 == \"tmpfs\" { exit 1 }" /proc/mounts && { - mount -n -o mode=0755 -t tmpfs none "/dev" - mkdir -m 0755 /dev/pts - mkdir -m 1777 /dev/shm -} - -if [ "$DEVCACHE" != "" ]; then - # Invalidate udev cache if the kernel or its bootargs/cmdline have changed - [ -x /bin/uname ] && /bin/uname -mrspv > /tmp/uname || touch /tmp/uname - [ -r /proc/cmdline ] && cat /proc/cmdline > /tmp/cmdline || touch /tmp/cmdline - [ -r /proc/devices ] && cat /proc/devices > /tmp/devices || touch /tmp/devices - [ -r /proc/atags ] && cat /proc/atags > /tmp/atags || touch /tmp/atags - if [ -e $DEVCACHE ] && \ - cmp -s /tmp/uname /etc/udev/saved.uname && \ - cmp -s /tmp/cmdline /etc/udev/saved.cmdline && \ - cmp -s /tmp/devices /etc/udev/saved.devices && \ - cmp -s /tmp/atags /etc/udev/saved.atags; then - (cd /; tar xf $DEVCACHE > /dev/null 2>&1) - not_first_boot=1 - fi -fi - -if [ ! -e "/lib/modules/$(uname -r)"/modules.dep ] ; then - mkdir -p /lib/modules/$(uname -r) - depmod -ae -fi - -# make_extra_nodes -kill_udevd > "/dev/null" 2>&1 - - # trigger the sorted events - echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug - /sbin/udevd -d - - /sbin/udevadm control --env STARTUP=1 - if [ "$not_first_boot" != "" ];then - /sbin/udevadm trigger --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus --subsystem-nomatch=graphics --subsystem-nomatch=backlight --subsystem-nomatch=video4linux --subsystem-nomatch=platform - (/sbin/udevadm settle --timeout=8; /sbin/udevadm control --env STARTUP=)& - else - /sbin/udevadm trigger - /sbin/udevadm settle - fi - -exit 0 diff --git a/recipes/udev/udev-151/omap3-pandora/local.rules b/recipes/udev/udev-151/omap3-pandora/local.rules deleted file mode 100644 index e433cf9593..0000000000 --- a/recipes/udev/udev-151/omap3-pandora/local.rules +++ /dev/null @@ -1,40 +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" - -# The first rtc device is symlinked to /dev/rtc -KERNEL=="rtc0", SYMLINK+="rtc" - -#The first framebuffer is symlinked to /dev/fb -KERNEL=="fb0", SYMLINK+="fb" - -# Try and modprobe for drivers for new hardware -ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}" - -# Create a symlink to any touchscreen input device -SUBSYSTEM=="input", KERNEL=="event[0-9]*", SYSFS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0" -SUBSYSTEM=="input", KERNEL=="event[0-9]*", SYSFS{modalias}=="ads7846", SYMLINK+="input/touchscreen0" - -# 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"
\ No newline at end of file diff --git a/recipes/udev/udev-151/run.rules b/recipes/udev/udev-151/run.rules deleted file mode 100644 index 75d71375bb..0000000000 --- a/recipes/udev/udev-151/run.rules +++ /dev/null @@ -1,14 +0,0 @@ -# debugging monitor -RUN+="socket:/org/kernel/udev/monitor" - -# run a command on remove events -ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}" - -# ignore the events generated by virtual consoles -KERNEL=="ptmx", OPTIONS+="last_rule" -KERNEL=="console", OPTIONS+="last_rule" -KERNEL=="tty" , OPTIONS+="last_rule" -KERNEL=="tty[0-9]*", OPTIONS+="last_rule" -KERNEL=="pty*", OPTIONS+="last_rule" -SUBSYSTEM=="vc", OPTIONS+="last_rule" - diff --git a/recipes/udev/udev-154/bug/10-mx31.rules b/recipes/udev/udev-154/bug/10-mx31.rules deleted file mode 100644 index de427fc8b2..0000000000 --- a/recipes/udev/udev-154/bug/10-mx31.rules +++ /dev/null @@ -1,49 +0,0 @@ -KERNEL=="ttyS[0-9]", NAME="tts/%n", SYMLINK+="tts%n" -KERNEL=="ttymxc[0-9]", NAME="ttymxc/%n", SYMLINK+="ttymxc%n" - -KERNEL=="mxc_mu[0-9]", NAME="mxc_mu/%n", SYMLINK+="mxc_mu%n" -KERNEL=="fb*", NAME="fb/%n", SYMLINK+="fb%n" -KERNEL=="i2c*", NAME="i2c/%n" -KERNEL=="mxc_ipc*", NAME="mxc_ipc/%n" -KERNEL=="video*", NAME="v4l/video%n" - -KERNEL=="rtc", NAME="misc/rtc" -KERNEL=="watchdog", NAME="misc/watchdog" - -KERNEL=="mc13783_adc", NAME="mc13783_adc", SYMLINK+="ts" -KERNEL=="pmic_adc", NAME="pmic_adc", SYMLINK+="ts" - -# The long class name gets cut off to be mc13783_connectiv in -# /sys/class/mc13783_connectivity/mc13783_connectivit -KERNEL=="mc13783_connectiv*", NAME="mc13783_connectivity" - -KERNEL=="mxc_ssi[0-9]*", NAME="mxc_ssi/%n", SYMLINK+="mxc_ssi%n" -KERNEL=="spi[0-9]*", NAME="spi/%n", SYMLINK+="spi%n" - -KERNEL=="mtdblock*", NAME="mtdblock/%n" SYMLINK+="mtdblock%n" -KERNEL=="mtd[0-9]", NAME="mtd/%n" - -# A more elegant way of doing this must exist... -KERNEL=="mtd0ro", NAME="mtd/0ro" -KERNEL=="mtd1ro", NAME="mtd/1ro" -KERNEL=="mtd2ro", NAME="mtd/2ro" -KERNEL=="mtd3ro", NAME="mtd/3ro" -KERNEL=="mtd4ro", NAME="mtd/4ro" -KERNEL=="mtd5ro", NAME="mtd/5ro" -KERNEL=="mtd6ro", NAME="mtd/6ro" -KERNEL=="mtd7ro", NAME="mtd/7ro" -KERNEL=="mtd8ro", NAME="mtd/8ro" -KERNEL=="mtd9ro", NAME="mtd/9ro" - -# Note that we want /dev/dsp linked to /dev/sound/dsp1... -KERNEL=="dsp", NAME="sound/dsp" -KERNEL=="dspW", NAME="sound/dspW" -KERNEL=="dsp1", NAME="sound/dsp1", SYMLINK+="dsp" -KERNEL=="mixer", NAME="sound/mixer", SYMLINK+="mixer" -KERNEL=="sequencer", NAME="sound/sequencer" -KERNEL=="sequencer2", NAME="sound/sequencer2" - -KERNEL=="ram[0-9]*", NAME="ram/%n", SYMLINK+="ram%n" - -KERNEL=="dvfs_dptc", NAME="dvfs_dptc", SYMLINK+="dptc dvfs" - diff --git a/recipes/udev/udev-154/bug/30-BUG.rules b/recipes/udev/udev-154/bug/30-BUG.rules deleted file mode 100644 index 06faa6bb91..0000000000 --- a/recipes/udev/udev-154/bug/30-BUG.rules +++ /dev/null @@ -1,26 +0,0 @@ -## -## BUG/BMI specific -## -KERNEL=="event*", ATTRS{name}=="bugnav", SYMLINK+="input/bugnav" -KERNEL=="event*", ATTRS{name}=="bmi_motion", SYMLINK+="input/bmi_motion" -KERNEL=="event*", ATTRS{name}=="bug_cam", SYMLINK+="input/bmi_cam" -KERNEL=="event*", ATTRS{name}=="bmi_audio_status_m1", SYMLINK+="input/bmi_audio_m1" -KERNEL=="event*", ATTRS{name}=="bmi_audio_status_m2", SYMLINK+="input/bmi_audio_m2" -KERNEL=="event*", ATTRS{name}=="bmi_audio_status_m3", SYMLINK+="input/bmi_audio_m3" -KERNEL=="event*", ATTRS{name}=="bmi_audio_status_m4", SYMLINK+="input/bmi_audio_m4" -DEVPATH=="/devices/platform/bugfb.0", SYMLINK+="bugfb" -KERNEL=="rtc0", SYMLINK+="rtc" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts0", SYMLINK+="input/bmi_lcd_ts0" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts1", SYMLINK+="input/bmi_lcd_ts1" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts2", SYMLINK+="input/bmi_lcd_ts2" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts3", SYMLINK+="input/bmi_lcd_ts3" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts4", SYMLINK+="input/bmi_lcd_ts4" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts5", SYMLINK+="input/bmi_lcd_ts5" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts6", SYMLINK+="input/bmi_lcd_ts6" -ACTION=="add", DEVPATH=="/devices/conn*", RUN+="/bin/sh /etc/udev/scripts/bmi_eventpipe.sh" -ACTION=="remove", DEVPATH=="/devices/conn*", RUN+="/bin/sh /etc/udev/scripts/bmi_eventpipe.sh" -# -# For USB PBPSD, which we've arbitrarily decided will be module F001 -# -ACTION=="remove", SUBSYSTEM=="usb", DRIVERS=="psd_driver", ENV{BMIBUS_PRODUCT}="F001", ENV{BMIBUS_SLOT}="%n", RUN+="/bin/sh /etc/udev/scripts/bmi_eventpipe.sh" -ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="psd_driver", ENV{BMIBUS_PRODUCT}="F001", ENV{BMIBUS_SLOT}="%n", RUN+="/bin/sh /etc/udev/scripts/bmi_eventpipe.sh" diff --git a/recipes/udev/udev-154/bug/bmi_eventpipe.sh b/recipes/udev/udev-154/bug/bmi_eventpipe.sh deleted file mode 100644 index acbae56118..0000000000 --- a/recipes/udev/udev-154/bug/bmi_eventpipe.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -# -# This script passes BMI state variables to the running JVM. -# -if [ ${BMIBUS_PRODUCT} != "" ] && [ ${BMIBUS_SLOT} != "" ] && [ ${ACTION} != "" ]; -then - echo $BMIBUS_PRODUCT 0 $BMIBUS_SLOT $ACTION > /tmp/eventpipe -fi diff --git a/recipes/udev/udev-154/cache b/recipes/udev/udev-154/cache deleted file mode 100644 index 6936170b85..0000000000 --- a/recipes/udev/udev-154/cache +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -e - -export TZ=/etc/localtime - -[ -f /etc/default/udev ] && . /etc/default/udev - -echo "Caching udev devnodes" - -if [ "$DEVCACHE" != "" ]; then - echo -n "Populating dev cache" - (cd /; tar cf $DEVCACHE dev) - mv /tmp/uname /etc/udev/saved.uname - mv /tmp/cmdline /etc/udev/saved.cmdline - mv /tmp/devices /etc/udev/saved.devices - mv /tmp/atags /etc/udev/saved.atags - echo -else - rm -f /tmp/uname - rm -f /tmp/cmdline - rm -f /tmp/devices - rm -f /tmp/atags -fi - -exit 0 diff --git a/recipes/udev/udev-154/default b/recipes/udev/udev-154/default deleted file mode 100644 index 5c4937a9a0..0000000000 --- a/recipes/udev/udev-154/default +++ /dev/null @@ -1,4 +0,0 @@ -# Default for /etc/init.d/udev - -# Comment this out to disable device cache -DEVCACHE="/etc/dev.tar" diff --git a/recipes/udev/udev-154/init b/recipes/udev/udev-154/init deleted file mode 100644 index c0ecdfc50b..0000000000 --- a/recipes/udev/udev-154/init +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/sh -e - -### BEGIN INIT INFO -# Provides: udev -# Required-Start: mountvirtfs -# Required-Stop: -# Default-Start: S -# Default-Stop: -# Short-Description: Start udevd, populate /dev and load drivers. -### END INIT INFO - -export TZ=/etc/localtime - -[ -d /sys/class ] || exit 1 -[ -r /proc/mounts ] || exit 1 -[ -x /sbin/udevd ] || exit 1 -[ -f /etc/default/udev ] && . /etc/default/udev -[ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf - -kill_udevd() { - if [ -x /sbin/pidof ]; then - pid=`/sbin/pidof -x udevd` - [ -n "$pid" ] && kill $pid - fi -} - -export ACTION=add -# propagate /dev from /sys -echo "Starting udev" - -# mount the tmpfs on /dev, if not already done -LANG=C awk "\$2 == \"/dev\" && \$3 == \"tmpfs\" { exit 1 }" /proc/mounts && { - mount -n -o mode=0755 -t tmpfs none "/dev" - mkdir -m 0755 /dev/pts - mkdir -m 1777 /dev/shm -} - -if [ "$DEVCACHE" != "" ]; then - # Invalidate udev cache if the kernel or its bootargs/cmdline have changed - [ -x /bin/uname ] && /bin/uname -mrspv > /tmp/uname || touch /tmp/uname - [ -r /proc/cmdline ] && cat /proc/cmdline > /tmp/cmdline || touch /tmp/cmdline - [ -r /proc/devices ] && cat /proc/devices > /tmp/devices || touch /tmp/devices - [ -r /proc/atags ] && cat /proc/atags > /tmp/atags || touch /tmp/atags - if [ -e $DEVCACHE ] && \ - cmp -s /tmp/uname /etc/udev/saved.uname && \ - cmp -s /tmp/cmdline /etc/udev/saved.cmdline && \ - cmp -s /tmp/devices /etc/udev/saved.devices && \ - cmp -s /tmp/atags /etc/udev/saved.atags; then - (cd /; tar xf $DEVCACHE > /dev/null 2>&1) - not_first_boot=1 - fi -fi - -if [ ! -e "/lib/modules/$(uname -r)"/modules.dep ] ; then - mkdir -p /lib/modules/$(uname -r) - depmod -ae -fi - -# make_extra_nodes -kill_udevd > "/dev/null" 2>&1 - - # trigger the sorted events - echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug - /sbin/udevd -d - - /sbin/udevadm control --env STARTUP=1 - if [ "$not_first_boot" != "" ];then - /sbin/udevadm trigger --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus --subsystem-nomatch=graphics --subsystem-nomatch=backlight --subsystem-nomatch=video4linux --subsystem-nomatch=platform - (/sbin/udevadm settle --timeout=8; /sbin/udevadm control --env STARTUP=)& - else - /sbin/udevadm trigger - /sbin/udevadm settle - fi - -exit 0 diff --git a/recipes/udev/udev-154/local.rules b/recipes/udev/udev-154/local.rules deleted file mode 100644 index da4b38593c..0000000000 --- a/recipes/udev/udev-154/local.rules +++ /dev/null @@ -1,35 +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" - -# The first rtc device is symlinked to /dev/rtc -KERNEL=="rtc0", SYMLINK+="rtc" - -#The first framebuffer is symlinked to /dev/fb -KERNEL=="fb0", SYMLINK+="fb" - -# Try and modprobe for drivers for new hardware -ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}" - -# Create a symlink to any touchscreen input device -SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0" -SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="ads7846", SYMLINK+="input/touchscreen0" diff --git a/recipes/udev/udev-154/omap3-pandora/local.rules b/recipes/udev/udev-154/omap3-pandora/local.rules deleted file mode 100644 index e433cf9593..0000000000 --- a/recipes/udev/udev-154/omap3-pandora/local.rules +++ /dev/null @@ -1,40 +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" - -# The first rtc device is symlinked to /dev/rtc -KERNEL=="rtc0", SYMLINK+="rtc" - -#The first framebuffer is symlinked to /dev/fb -KERNEL=="fb0", SYMLINK+="fb" - -# Try and modprobe for drivers for new hardware -ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}" - -# Create a symlink to any touchscreen input device -SUBSYSTEM=="input", KERNEL=="event[0-9]*", SYSFS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0" -SUBSYSTEM=="input", KERNEL=="event[0-9]*", SYSFS{modalias}=="ads7846", SYMLINK+="input/touchscreen0" - -# 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"
\ No newline at end of file diff --git a/recipes/udev/udev-154/run.rules b/recipes/udev/udev-154/run.rules deleted file mode 100644 index 75d71375bb..0000000000 --- a/recipes/udev/udev-154/run.rules +++ /dev/null @@ -1,14 +0,0 @@ -# debugging monitor -RUN+="socket:/org/kernel/udev/monitor" - -# run a command on remove events -ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}" - -# ignore the events generated by virtual consoles -KERNEL=="ptmx", OPTIONS+="last_rule" -KERNEL=="console", OPTIONS+="last_rule" -KERNEL=="tty" , OPTIONS+="last_rule" -KERNEL=="tty[0-9]*", OPTIONS+="last_rule" -KERNEL=="pty*", OPTIONS+="last_rule" -SUBSYSTEM=="vc", OPTIONS+="last_rule" - diff --git a/recipes/udev/udev-154/udev-replace-le16toh.patch b/recipes/udev/udev-154/udev-replace-le16toh.patch deleted file mode 100644 index 7776c9a10e..0000000000 --- a/recipes/udev/udev-154/udev-replace-le16toh.patch +++ /dev/null @@ -1,21 +0,0 @@ -This patch is needed on uclibc. - --Khem - -Index: udev-151/extras/ata_id/ata_id.c -=================================================================== ---- udev-151.orig/extras/ata_id/ata_id.c 2010-06-04 14:08:41.912730501 -0700 -+++ udev-151/extras/ata_id/ata_id.c 2010-06-04 14:09:31.492734527 -0700 -@@ -168,7 +168,11 @@ static void disk_identify_fixup_uint16 ( - uint16_t *p; - - p = (uint16_t *) identify; -- p[offset_words] = le16toh (p[offset_words]); -+#if __BYTE_ORDER == __LITTLE_ENDIAN -+ p[offset_words] = p[offset_words]; -+#else -+ p[offset_words] = __bswap_16 (p[offset_words]); -+#endif - } - - /** diff --git a/recipes/udev/udev-154/udev-replace-lutimes.patch b/recipes/udev/udev-154/udev-replace-lutimes.patch deleted file mode 100644 index dd77897345..0000000000 --- a/recipes/udev/udev-154/udev-replace-lutimes.patch +++ /dev/null @@ -1,25 +0,0 @@ -This patch is needed on uclibc - --Khem -Index: udev-151/udev/udev-node.c -=================================================================== ---- udev-151.orig/udev/udev-node.c 2010-06-04 14:18:59.082727182 -0700 -+++ udev-151/udev/udev-node.c 2010-06-04 14:20:27.485282812 -0700 -@@ -57,7 +57,7 @@ int udev_node_mknod(struct udev_device * - preserve = 1; - udev_selinux_lsetfilecon(udev, file, mode); - /* update time stamp when we re-use the node, like on media change events */ -- utimes(file, NULL); -+ utimensat(AT_FDCWD, file, NULL, 0); - } else { - char file_tmp[UTIL_PATH_SIZE + sizeof(TMP_FILE_EXT)]; - -@@ -178,7 +178,7 @@ static int node_symlink(struct udev *ude - info(udev, "preserve already existing symlink '%s' to '%s'\n", - slink, target); - udev_selinux_lsetfilecon(udev, slink, S_IFLNK); -- lutimes(slink, NULL); -+ utimensat(AT_FDCWD, slink, NULL, AT_SYMLINK_NOFOLLOW); - goto exit; - } - } diff --git a/recipes/udev/udev-154/udev.rules b/recipes/udev/udev-154/udev.rules deleted file mode 100644 index c20cdcc153..0000000000 --- a/recipes/udev/udev-154/udev.rules +++ /dev/null @@ -1,113 +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 -# - -# workaround for devices which do not report media changes -SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTR{removable}=="1", \ - ENV{ID_MODEL}=="IOMEGA_ZIP*", OPTIONS+="all_partitions" -SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTRS{media}=="floppy", \ - OPTIONS+="all_partitions" - -# SCSI devices -SUBSYSTEMS=="scsi", KERNEL=="sr[0-9]*", NAME="scd%n", SYMLINK+="sr%n" - -# USB devices -SUBSYSTEMS=="usb", KERNEL=="auer[0-9]*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="cpad[0-9]*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="dabusb*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="hiddev*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="legousbtower*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", \ - ATTRS{product}=="Palm Handheld*|Handspring Visor|palmOne Handheld", \ - SYMLINK+="pilot" - -# usbfs-like devices -SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", ACTION=="add", \ - NAME="%c" -SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}" - -# serial devices -KERNEL=="capi", NAME="capi20", SYMLINK+="isdn/capi20" -KERNEL=="capi[0-9]*", NAME="capi/%n" - -# video devices -KERNEL=="dvb*", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}", ACTION=="add", \ - NAME="%c" -KERNEL=="card[0-9]*", NAME="dri/%k" - -# misc devices -KERNEL=="hw_random", NAME="hwrng" -KERNEL=="tun", NAME="net/%k" -KERNEL=="evtchn", NAME="xen/%k" - -KERNEL=="cdemu[0-9]*", NAME="cdemu/%n" -KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%n" -KERNEL=="pktcdvd", NAME="pktcdvd/control" - -KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid" -KERNEL=="msr[0-9]*", NAME="cpu/%n/msr" -KERNEL=="microcode", NAME="cpu/microcode" - -KERNEL=="umad*", NAME="infiniband/%k" -KERNEL=="issm*", NAME="infiniband/%k" -KERNEL=="uverbs*", NAME="infiniband/%k" -KERNEL=="ucm*", NAME="infiniband/%k" -KERNEL=="rdma_ucm", NAME="infiniband/%k" - -# ALSA devices -KERNEL=="controlC[0-9]*", NAME="snd/%k" -KERNEL=="hwC[D0-9]*", NAME="snd/%k" -KERNEL=="pcmC[D0-9cp]*", NAME="snd/%k" -KERNEL=="midiC[D0-9]*", NAME="snd/%k" -KERNEL=="timer", NAME="snd/%k" -KERNEL=="seq", NAME="snd/%k" - -# ieee1394 devices -KERNEL=="dv1394*", NAME="dv1394/%n" -KERNEL=="video1394*", NAME="video1394/%n" - -# input devices -KERNEL=="mice", NAME="input/%k" -KERNEL=="mouse[0-9]*", NAME="input/%k" -KERNEL=="event[0-9]*", NAME="input/%k" -KERNEL=="js[0-9]*", NAME="input/%k" -KERNEL=="ts[0-9]*", NAME="input/%k" -KERNEL=="uinput", NAME="input/%k" - -# Zaptel -KERNEL=="zapctl", NAME="zap/ctl" -KERNEL=="zaptimer", NAME="zap/timer" -KERNEL=="zapchannel", NAME="zap/channel" -KERNEL=="zappseudo", NAME="zap/pseudo" -KERNEL=="zap[0-9]*", NAME="zap/%n" - -# AOE character devices -SUBSYSTEM=="aoe", KERNEL=="discover", NAME="etherd/%k" -SUBSYSTEM=="aoe", KERNEL=="err", NAME="etherd/%k" -SUBSYSTEM=="aoe", KERNEL=="interfaces", NAME="etherd/%k" -SUBSYSTEM=="aoe", KERNEL=="revalidate", NAME="etherd/%k" - -# device mapper creates its own device nodes, so ignore these -KERNEL=="dm-[0-9]*", OPTIONS+="ignore_device" -KERNEL=="device-mapper", NAME="mapper/control" - -KERNEL=="rfcomm[0-9]*", GROUP="users", MODE="0660" - -# Samsung UARTS -KERNEL=="s3c2410_serial[0-9]", NAME="ttySAC%n" - -# MXC UARTs -KERNEL=="ttymxc[0-4]", NAME="ttymxc%n" - diff --git a/recipes/udev/udev-162/bug/10-mx31.rules b/recipes/udev/udev-162/bug/10-mx31.rules deleted file mode 100644 index de427fc8b2..0000000000 --- a/recipes/udev/udev-162/bug/10-mx31.rules +++ /dev/null @@ -1,49 +0,0 @@ -KERNEL=="ttyS[0-9]", NAME="tts/%n", SYMLINK+="tts%n" -KERNEL=="ttymxc[0-9]", NAME="ttymxc/%n", SYMLINK+="ttymxc%n" - -KERNEL=="mxc_mu[0-9]", NAME="mxc_mu/%n", SYMLINK+="mxc_mu%n" -KERNEL=="fb*", NAME="fb/%n", SYMLINK+="fb%n" -KERNEL=="i2c*", NAME="i2c/%n" -KERNEL=="mxc_ipc*", NAME="mxc_ipc/%n" -KERNEL=="video*", NAME="v4l/video%n" - -KERNEL=="rtc", NAME="misc/rtc" -KERNEL=="watchdog", NAME="misc/watchdog" - -KERNEL=="mc13783_adc", NAME="mc13783_adc", SYMLINK+="ts" -KERNEL=="pmic_adc", NAME="pmic_adc", SYMLINK+="ts" - -# The long class name gets cut off to be mc13783_connectiv in -# /sys/class/mc13783_connectivity/mc13783_connectivit -KERNEL=="mc13783_connectiv*", NAME="mc13783_connectivity" - -KERNEL=="mxc_ssi[0-9]*", NAME="mxc_ssi/%n", SYMLINK+="mxc_ssi%n" -KERNEL=="spi[0-9]*", NAME="spi/%n", SYMLINK+="spi%n" - -KERNEL=="mtdblock*", NAME="mtdblock/%n" SYMLINK+="mtdblock%n" -KERNEL=="mtd[0-9]", NAME="mtd/%n" - -# A more elegant way of doing this must exist... -KERNEL=="mtd0ro", NAME="mtd/0ro" -KERNEL=="mtd1ro", NAME="mtd/1ro" -KERNEL=="mtd2ro", NAME="mtd/2ro" -KERNEL=="mtd3ro", NAME="mtd/3ro" -KERNEL=="mtd4ro", NAME="mtd/4ro" -KERNEL=="mtd5ro", NAME="mtd/5ro" -KERNEL=="mtd6ro", NAME="mtd/6ro" -KERNEL=="mtd7ro", NAME="mtd/7ro" -KERNEL=="mtd8ro", NAME="mtd/8ro" -KERNEL=="mtd9ro", NAME="mtd/9ro" - -# Note that we want /dev/dsp linked to /dev/sound/dsp1... -KERNEL=="dsp", NAME="sound/dsp" -KERNEL=="dspW", NAME="sound/dspW" -KERNEL=="dsp1", NAME="sound/dsp1", SYMLINK+="dsp" -KERNEL=="mixer", NAME="sound/mixer", SYMLINK+="mixer" -KERNEL=="sequencer", NAME="sound/sequencer" -KERNEL=="sequencer2", NAME="sound/sequencer2" - -KERNEL=="ram[0-9]*", NAME="ram/%n", SYMLINK+="ram%n" - -KERNEL=="dvfs_dptc", NAME="dvfs_dptc", SYMLINK+="dptc dvfs" - diff --git a/recipes/udev/udev-162/bug/30-BUG.rules b/recipes/udev/udev-162/bug/30-BUG.rules deleted file mode 100644 index 06faa6bb91..0000000000 --- a/recipes/udev/udev-162/bug/30-BUG.rules +++ /dev/null @@ -1,26 +0,0 @@ -## -## BUG/BMI specific -## -KERNEL=="event*", ATTRS{name}=="bugnav", SYMLINK+="input/bugnav" -KERNEL=="event*", ATTRS{name}=="bmi_motion", SYMLINK+="input/bmi_motion" -KERNEL=="event*", ATTRS{name}=="bug_cam", SYMLINK+="input/bmi_cam" -KERNEL=="event*", ATTRS{name}=="bmi_audio_status_m1", SYMLINK+="input/bmi_audio_m1" -KERNEL=="event*", ATTRS{name}=="bmi_audio_status_m2", SYMLINK+="input/bmi_audio_m2" -KERNEL=="event*", ATTRS{name}=="bmi_audio_status_m3", SYMLINK+="input/bmi_audio_m3" -KERNEL=="event*", ATTRS{name}=="bmi_audio_status_m4", SYMLINK+="input/bmi_audio_m4" -DEVPATH=="/devices/platform/bugfb.0", SYMLINK+="bugfb" -KERNEL=="rtc0", SYMLINK+="rtc" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts0", SYMLINK+="input/bmi_lcd_ts0" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts1", SYMLINK+="input/bmi_lcd_ts1" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts2", SYMLINK+="input/bmi_lcd_ts2" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts3", SYMLINK+="input/bmi_lcd_ts3" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts4", SYMLINK+="input/bmi_lcd_ts4" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts5", SYMLINK+="input/bmi_lcd_ts5" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts6", SYMLINK+="input/bmi_lcd_ts6" -ACTION=="add", DEVPATH=="/devices/conn*", RUN+="/bin/sh /etc/udev/scripts/bmi_eventpipe.sh" -ACTION=="remove", DEVPATH=="/devices/conn*", RUN+="/bin/sh /etc/udev/scripts/bmi_eventpipe.sh" -# -# For USB PBPSD, which we've arbitrarily decided will be module F001 -# -ACTION=="remove", SUBSYSTEM=="usb", DRIVERS=="psd_driver", ENV{BMIBUS_PRODUCT}="F001", ENV{BMIBUS_SLOT}="%n", RUN+="/bin/sh /etc/udev/scripts/bmi_eventpipe.sh" -ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="psd_driver", ENV{BMIBUS_PRODUCT}="F001", ENV{BMIBUS_SLOT}="%n", RUN+="/bin/sh /etc/udev/scripts/bmi_eventpipe.sh" diff --git a/recipes/udev/udev-162/bug/bmi_eventpipe.sh b/recipes/udev/udev-162/bug/bmi_eventpipe.sh deleted file mode 100644 index acbae56118..0000000000 --- a/recipes/udev/udev-162/bug/bmi_eventpipe.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -# -# This script passes BMI state variables to the running JVM. -# -if [ ${BMIBUS_PRODUCT} != "" ] && [ ${BMIBUS_SLOT} != "" ] && [ ${ACTION} != "" ]; -then - echo $BMIBUS_PRODUCT 0 $BMIBUS_SLOT $ACTION > /tmp/eventpipe -fi diff --git a/recipes/udev/udev-162/cache b/recipes/udev/udev-162/cache deleted file mode 100644 index 6936170b85..0000000000 --- a/recipes/udev/udev-162/cache +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -e - -export TZ=/etc/localtime - -[ -f /etc/default/udev ] && . /etc/default/udev - -echo "Caching udev devnodes" - -if [ "$DEVCACHE" != "" ]; then - echo -n "Populating dev cache" - (cd /; tar cf $DEVCACHE dev) - mv /tmp/uname /etc/udev/saved.uname - mv /tmp/cmdline /etc/udev/saved.cmdline - mv /tmp/devices /etc/udev/saved.devices - mv /tmp/atags /etc/udev/saved.atags - echo -else - rm -f /tmp/uname - rm -f /tmp/cmdline - rm -f /tmp/devices - rm -f /tmp/atags -fi - -exit 0 diff --git a/recipes/udev/udev-162/default b/recipes/udev/udev-162/default deleted file mode 100644 index 5c4937a9a0..0000000000 --- a/recipes/udev/udev-162/default +++ /dev/null @@ -1,4 +0,0 @@ -# Default for /etc/init.d/udev - -# Comment this out to disable device cache -DEVCACHE="/etc/dev.tar" diff --git a/recipes/udev/udev-162/init b/recipes/udev/udev-162/init deleted file mode 100644 index c0ecdfc50b..0000000000 --- a/recipes/udev/udev-162/init +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/sh -e - -### BEGIN INIT INFO -# Provides: udev -# Required-Start: mountvirtfs -# Required-Stop: -# Default-Start: S -# Default-Stop: -# Short-Description: Start udevd, populate /dev and load drivers. -### END INIT INFO - -export TZ=/etc/localtime - -[ -d /sys/class ] || exit 1 -[ -r /proc/mounts ] || exit 1 -[ -x /sbin/udevd ] || exit 1 -[ -f /etc/default/udev ] && . /etc/default/udev -[ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf - -kill_udevd() { - if [ -x /sbin/pidof ]; then - pid=`/sbin/pidof -x udevd` - [ -n "$pid" ] && kill $pid - fi -} - -export ACTION=add -# propagate /dev from /sys -echo "Starting udev" - -# mount the tmpfs on /dev, if not already done -LANG=C awk "\$2 == \"/dev\" && \$3 == \"tmpfs\" { exit 1 }" /proc/mounts && { - mount -n -o mode=0755 -t tmpfs none "/dev" - mkdir -m 0755 /dev/pts - mkdir -m 1777 /dev/shm -} - -if [ "$DEVCACHE" != "" ]; then - # Invalidate udev cache if the kernel or its bootargs/cmdline have changed - [ -x /bin/uname ] && /bin/uname -mrspv > /tmp/uname || touch /tmp/uname - [ -r /proc/cmdline ] && cat /proc/cmdline > /tmp/cmdline || touch /tmp/cmdline - [ -r /proc/devices ] && cat /proc/devices > /tmp/devices || touch /tmp/devices - [ -r /proc/atags ] && cat /proc/atags > /tmp/atags || touch /tmp/atags - if [ -e $DEVCACHE ] && \ - cmp -s /tmp/uname /etc/udev/saved.uname && \ - cmp -s /tmp/cmdline /etc/udev/saved.cmdline && \ - cmp -s /tmp/devices /etc/udev/saved.devices && \ - cmp -s /tmp/atags /etc/udev/saved.atags; then - (cd /; tar xf $DEVCACHE > /dev/null 2>&1) - not_first_boot=1 - fi -fi - -if [ ! -e "/lib/modules/$(uname -r)"/modules.dep ] ; then - mkdir -p /lib/modules/$(uname -r) - depmod -ae -fi - -# make_extra_nodes -kill_udevd > "/dev/null" 2>&1 - - # trigger the sorted events - echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug - /sbin/udevd -d - - /sbin/udevadm control --env STARTUP=1 - if [ "$not_first_boot" != "" ];then - /sbin/udevadm trigger --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus --subsystem-nomatch=graphics --subsystem-nomatch=backlight --subsystem-nomatch=video4linux --subsystem-nomatch=platform - (/sbin/udevadm settle --timeout=8; /sbin/udevadm control --env STARTUP=)& - else - /sbin/udevadm trigger - /sbin/udevadm settle - fi - -exit 0 diff --git a/recipes/udev/udev-162/local.rules b/recipes/udev/udev-162/local.rules deleted file mode 100644 index da4b38593c..0000000000 --- a/recipes/udev/udev-162/local.rules +++ /dev/null @@ -1,35 +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" - -# The first rtc device is symlinked to /dev/rtc -KERNEL=="rtc0", SYMLINK+="rtc" - -#The first framebuffer is symlinked to /dev/fb -KERNEL=="fb0", SYMLINK+="fb" - -# Try and modprobe for drivers for new hardware -ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}" - -# Create a symlink to any touchscreen input device -SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0" -SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="ads7846", SYMLINK+="input/touchscreen0" diff --git a/recipes/udev/udev-162/omap3-pandora/local.rules b/recipes/udev/udev-162/omap3-pandora/local.rules deleted file mode 100644 index e433cf9593..0000000000 --- a/recipes/udev/udev-162/omap3-pandora/local.rules +++ /dev/null @@ -1,40 +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" - -# The first rtc device is symlinked to /dev/rtc -KERNEL=="rtc0", SYMLINK+="rtc" - -#The first framebuffer is symlinked to /dev/fb -KERNEL=="fb0", SYMLINK+="fb" - -# Try and modprobe for drivers for new hardware -ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}" - -# Create a symlink to any touchscreen input device -SUBSYSTEM=="input", KERNEL=="event[0-9]*", SYSFS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0" -SUBSYSTEM=="input", KERNEL=="event[0-9]*", SYSFS{modalias}=="ads7846", SYMLINK+="input/touchscreen0" - -# 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"
\ No newline at end of file diff --git a/recipes/udev/udev-162/run.rules b/recipes/udev/udev-162/run.rules deleted file mode 100644 index 75d71375bb..0000000000 --- a/recipes/udev/udev-162/run.rules +++ /dev/null @@ -1,14 +0,0 @@ -# debugging monitor -RUN+="socket:/org/kernel/udev/monitor" - -# run a command on remove events -ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}" - -# ignore the events generated by virtual consoles -KERNEL=="ptmx", OPTIONS+="last_rule" -KERNEL=="console", OPTIONS+="last_rule" -KERNEL=="tty" , OPTIONS+="last_rule" -KERNEL=="tty[0-9]*", OPTIONS+="last_rule" -KERNEL=="pty*", OPTIONS+="last_rule" -SUBSYSTEM=="vc", OPTIONS+="last_rule" - diff --git a/recipes/udev/udev-162/udev-replace-le16toh.patch b/recipes/udev/udev-162/udev-replace-le16toh.patch deleted file mode 100644 index 7776c9a10e..0000000000 --- a/recipes/udev/udev-162/udev-replace-le16toh.patch +++ /dev/null @@ -1,21 +0,0 @@ -This patch is needed on uclibc. - --Khem - -Index: udev-151/extras/ata_id/ata_id.c -=================================================================== ---- udev-151.orig/extras/ata_id/ata_id.c 2010-06-04 14:08:41.912730501 -0700 -+++ udev-151/extras/ata_id/ata_id.c 2010-06-04 14:09:31.492734527 -0700 -@@ -168,7 +168,11 @@ static void disk_identify_fixup_uint16 ( - uint16_t *p; - - p = (uint16_t *) identify; -- p[offset_words] = le16toh (p[offset_words]); -+#if __BYTE_ORDER == __LITTLE_ENDIAN -+ p[offset_words] = p[offset_words]; -+#else -+ p[offset_words] = __bswap_16 (p[offset_words]); -+#endif - } - - /** diff --git a/recipes/udev/udev-162/udev-replace-lutimes.patch b/recipes/udev/udev-162/udev-replace-lutimes.patch deleted file mode 100644 index dd77897345..0000000000 --- a/recipes/udev/udev-162/udev-replace-lutimes.patch +++ /dev/null @@ -1,25 +0,0 @@ -This patch is needed on uclibc - --Khem -Index: udev-151/udev/udev-node.c -=================================================================== ---- udev-151.orig/udev/udev-node.c 2010-06-04 14:18:59.082727182 -0700 -+++ udev-151/udev/udev-node.c 2010-06-04 14:20:27.485282812 -0700 -@@ -57,7 +57,7 @@ int udev_node_mknod(struct udev_device * - preserve = 1; - udev_selinux_lsetfilecon(udev, file, mode); - /* update time stamp when we re-use the node, like on media change events */ -- utimes(file, NULL); -+ utimensat(AT_FDCWD, file, NULL, 0); - } else { - char file_tmp[UTIL_PATH_SIZE + sizeof(TMP_FILE_EXT)]; - -@@ -178,7 +178,7 @@ static int node_symlink(struct udev *ude - info(udev, "preserve already existing symlink '%s' to '%s'\n", - slink, target); - udev_selinux_lsetfilecon(udev, slink, S_IFLNK); -- lutimes(slink, NULL); -+ utimensat(AT_FDCWD, slink, NULL, AT_SYMLINK_NOFOLLOW); - goto exit; - } - } diff --git a/recipes/udev/udev-162/udev.rules b/recipes/udev/udev-162/udev.rules deleted file mode 100644 index c20cdcc153..0000000000 --- a/recipes/udev/udev-162/udev.rules +++ /dev/null @@ -1,113 +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 -# - -# workaround for devices which do not report media changes -SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTR{removable}=="1", \ - ENV{ID_MODEL}=="IOMEGA_ZIP*", OPTIONS+="all_partitions" -SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTRS{media}=="floppy", \ - OPTIONS+="all_partitions" - -# SCSI devices -SUBSYSTEMS=="scsi", KERNEL=="sr[0-9]*", NAME="scd%n", SYMLINK+="sr%n" - -# USB devices -SUBSYSTEMS=="usb", KERNEL=="auer[0-9]*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="cpad[0-9]*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="dabusb*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="hiddev*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="legousbtower*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", \ - ATTRS{product}=="Palm Handheld*|Handspring Visor|palmOne Handheld", \ - SYMLINK+="pilot" - -# usbfs-like devices -SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", ACTION=="add", \ - NAME="%c" -SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}" - -# serial devices -KERNEL=="capi", NAME="capi20", SYMLINK+="isdn/capi20" -KERNEL=="capi[0-9]*", NAME="capi/%n" - -# video devices -KERNEL=="dvb*", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}", ACTION=="add", \ - NAME="%c" -KERNEL=="card[0-9]*", NAME="dri/%k" - -# misc devices -KERNEL=="hw_random", NAME="hwrng" -KERNEL=="tun", NAME="net/%k" -KERNEL=="evtchn", NAME="xen/%k" - -KERNEL=="cdemu[0-9]*", NAME="cdemu/%n" -KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%n" -KERNEL=="pktcdvd", NAME="pktcdvd/control" - -KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid" -KERNEL=="msr[0-9]*", NAME="cpu/%n/msr" -KERNEL=="microcode", NAME="cpu/microcode" - -KERNEL=="umad*", NAME="infiniband/%k" -KERNEL=="issm*", NAME="infiniband/%k" -KERNEL=="uverbs*", NAME="infiniband/%k" -KERNEL=="ucm*", NAME="infiniband/%k" -KERNEL=="rdma_ucm", NAME="infiniband/%k" - -# ALSA devices -KERNEL=="controlC[0-9]*", NAME="snd/%k" -KERNEL=="hwC[D0-9]*", NAME="snd/%k" -KERNEL=="pcmC[D0-9cp]*", NAME="snd/%k" -KERNEL=="midiC[D0-9]*", NAME="snd/%k" -KERNEL=="timer", NAME="snd/%k" -KERNEL=="seq", NAME="snd/%k" - -# ieee1394 devices -KERNEL=="dv1394*", NAME="dv1394/%n" -KERNEL=="video1394*", NAME="video1394/%n" - -# input devices -KERNEL=="mice", NAME="input/%k" -KERNEL=="mouse[0-9]*", NAME="input/%k" -KERNEL=="event[0-9]*", NAME="input/%k" -KERNEL=="js[0-9]*", NAME="input/%k" -KERNEL=="ts[0-9]*", NAME="input/%k" -KERNEL=="uinput", NAME="input/%k" - -# Zaptel -KERNEL=="zapctl", NAME="zap/ctl" -KERNEL=="zaptimer", NAME="zap/timer" -KERNEL=="zapchannel", NAME="zap/channel" -KERNEL=="zappseudo", NAME="zap/pseudo" -KERNEL=="zap[0-9]*", NAME="zap/%n" - -# AOE character devices -SUBSYSTEM=="aoe", KERNEL=="discover", NAME="etherd/%k" -SUBSYSTEM=="aoe", KERNEL=="err", NAME="etherd/%k" -SUBSYSTEM=="aoe", KERNEL=="interfaces", NAME="etherd/%k" -SUBSYSTEM=="aoe", KERNEL=="revalidate", NAME="etherd/%k" - -# device mapper creates its own device nodes, so ignore these -KERNEL=="dm-[0-9]*", OPTIONS+="ignore_device" -KERNEL=="device-mapper", NAME="mapper/control" - -KERNEL=="rfcomm[0-9]*", GROUP="users", MODE="0660" - -# Samsung UARTS -KERNEL=="s3c2410_serial[0-9]", NAME="ttySAC%n" - -# MXC UARTs -KERNEL=="ttymxc[0-4]", NAME="ttymxc%n" - diff --git a/recipes/udev/udev-165/bug/10-mx31.rules b/recipes/udev/udev-165/bug/10-mx31.rules deleted file mode 100644 index de427fc8b2..0000000000 --- a/recipes/udev/udev-165/bug/10-mx31.rules +++ /dev/null @@ -1,49 +0,0 @@ -KERNEL=="ttyS[0-9]", NAME="tts/%n", SYMLINK+="tts%n" -KERNEL=="ttymxc[0-9]", NAME="ttymxc/%n", SYMLINK+="ttymxc%n" - -KERNEL=="mxc_mu[0-9]", NAME="mxc_mu/%n", SYMLINK+="mxc_mu%n" -KERNEL=="fb*", NAME="fb/%n", SYMLINK+="fb%n" -KERNEL=="i2c*", NAME="i2c/%n" -KERNEL=="mxc_ipc*", NAME="mxc_ipc/%n" -KERNEL=="video*", NAME="v4l/video%n" - -KERNEL=="rtc", NAME="misc/rtc" -KERNEL=="watchdog", NAME="misc/watchdog" - -KERNEL=="mc13783_adc", NAME="mc13783_adc", SYMLINK+="ts" -KERNEL=="pmic_adc", NAME="pmic_adc", SYMLINK+="ts" - -# The long class name gets cut off to be mc13783_connectiv in -# /sys/class/mc13783_connectivity/mc13783_connectivit -KERNEL=="mc13783_connectiv*", NAME="mc13783_connectivity" - -KERNEL=="mxc_ssi[0-9]*", NAME="mxc_ssi/%n", SYMLINK+="mxc_ssi%n" -KERNEL=="spi[0-9]*", NAME="spi/%n", SYMLINK+="spi%n" - -KERNEL=="mtdblock*", NAME="mtdblock/%n" SYMLINK+="mtdblock%n" -KERNEL=="mtd[0-9]", NAME="mtd/%n" - -# A more elegant way of doing this must exist... -KERNEL=="mtd0ro", NAME="mtd/0ro" -KERNEL=="mtd1ro", NAME="mtd/1ro" -KERNEL=="mtd2ro", NAME="mtd/2ro" -KERNEL=="mtd3ro", NAME="mtd/3ro" -KERNEL=="mtd4ro", NAME="mtd/4ro" -KERNEL=="mtd5ro", NAME="mtd/5ro" -KERNEL=="mtd6ro", NAME="mtd/6ro" -KERNEL=="mtd7ro", NAME="mtd/7ro" -KERNEL=="mtd8ro", NAME="mtd/8ro" -KERNEL=="mtd9ro", NAME="mtd/9ro" - -# Note that we want /dev/dsp linked to /dev/sound/dsp1... -KERNEL=="dsp", NAME="sound/dsp" -KERNEL=="dspW", NAME="sound/dspW" -KERNEL=="dsp1", NAME="sound/dsp1", SYMLINK+="dsp" -KERNEL=="mixer", NAME="sound/mixer", SYMLINK+="mixer" -KERNEL=="sequencer", NAME="sound/sequencer" -KERNEL=="sequencer2", NAME="sound/sequencer2" - -KERNEL=="ram[0-9]*", NAME="ram/%n", SYMLINK+="ram%n" - -KERNEL=="dvfs_dptc", NAME="dvfs_dptc", SYMLINK+="dptc dvfs" - diff --git a/recipes/udev/udev-165/bug/30-BUG.rules b/recipes/udev/udev-165/bug/30-BUG.rules deleted file mode 100644 index 06faa6bb91..0000000000 --- a/recipes/udev/udev-165/bug/30-BUG.rules +++ /dev/null @@ -1,26 +0,0 @@ -## -## BUG/BMI specific -## -KERNEL=="event*", ATTRS{name}=="bugnav", SYMLINK+="input/bugnav" -KERNEL=="event*", ATTRS{name}=="bmi_motion", SYMLINK+="input/bmi_motion" -KERNEL=="event*", ATTRS{name}=="bug_cam", SYMLINK+="input/bmi_cam" -KERNEL=="event*", ATTRS{name}=="bmi_audio_status_m1", SYMLINK+="input/bmi_audio_m1" -KERNEL=="event*", ATTRS{name}=="bmi_audio_status_m2", SYMLINK+="input/bmi_audio_m2" -KERNEL=="event*", ATTRS{name}=="bmi_audio_status_m3", SYMLINK+="input/bmi_audio_m3" -KERNEL=="event*", ATTRS{name}=="bmi_audio_status_m4", SYMLINK+="input/bmi_audio_m4" -DEVPATH=="/devices/platform/bugfb.0", SYMLINK+="bugfb" -KERNEL=="rtc0", SYMLINK+="rtc" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts0", SYMLINK+="input/bmi_lcd_ts0" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts1", SYMLINK+="input/bmi_lcd_ts1" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts2", SYMLINK+="input/bmi_lcd_ts2" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts3", SYMLINK+="input/bmi_lcd_ts3" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts4", SYMLINK+="input/bmi_lcd_ts4" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts5", SYMLINK+="input/bmi_lcd_ts5" -KERNEL=="event*", ATTRS{name}=="bmi_lcd_ts6", SYMLINK+="input/bmi_lcd_ts6" -ACTION=="add", DEVPATH=="/devices/conn*", RUN+="/bin/sh /etc/udev/scripts/bmi_eventpipe.sh" -ACTION=="remove", DEVPATH=="/devices/conn*", RUN+="/bin/sh /etc/udev/scripts/bmi_eventpipe.sh" -# -# For USB PBPSD, which we've arbitrarily decided will be module F001 -# -ACTION=="remove", SUBSYSTEM=="usb", DRIVERS=="psd_driver", ENV{BMIBUS_PRODUCT}="F001", ENV{BMIBUS_SLOT}="%n", RUN+="/bin/sh /etc/udev/scripts/bmi_eventpipe.sh" -ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="psd_driver", ENV{BMIBUS_PRODUCT}="F001", ENV{BMIBUS_SLOT}="%n", RUN+="/bin/sh /etc/udev/scripts/bmi_eventpipe.sh" diff --git a/recipes/udev/udev-165/bug/bmi_eventpipe.sh b/recipes/udev/udev-165/bug/bmi_eventpipe.sh deleted file mode 100644 index acbae56118..0000000000 --- a/recipes/udev/udev-165/bug/bmi_eventpipe.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -# -# This script passes BMI state variables to the running JVM. -# -if [ ${BMIBUS_PRODUCT} != "" ] && [ ${BMIBUS_SLOT} != "" ] && [ ${ACTION} != "" ]; -then - echo $BMIBUS_PRODUCT 0 $BMIBUS_SLOT $ACTION > /tmp/eventpipe -fi diff --git a/recipes/udev/udev-165/cache b/recipes/udev/udev-165/cache deleted file mode 100644 index 6936170b85..0000000000 --- a/recipes/udev/udev-165/cache +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -e - -export TZ=/etc/localtime - -[ -f /etc/default/udev ] && . /etc/default/udev - -echo "Caching udev devnodes" - -if [ "$DEVCACHE" != "" ]; then - echo -n "Populating dev cache" - (cd /; tar cf $DEVCACHE dev) - mv /tmp/uname /etc/udev/saved.uname - mv /tmp/cmdline /etc/udev/saved.cmdline - mv /tmp/devices /etc/udev/saved.devices - mv /tmp/atags /etc/udev/saved.atags - echo -else - rm -f /tmp/uname - rm -f /tmp/cmdline - rm -f /tmp/devices - rm -f /tmp/atags -fi - -exit 0 diff --git a/recipes/udev/udev-165/default b/recipes/udev/udev-165/default deleted file mode 100644 index 5c4937a9a0..0000000000 --- a/recipes/udev/udev-165/default +++ /dev/null @@ -1,4 +0,0 @@ -# Default for /etc/init.d/udev - -# Comment this out to disable device cache -DEVCACHE="/etc/dev.tar" diff --git a/recipes/udev/udev-165/init b/recipes/udev/udev-165/init deleted file mode 100644 index c0ecdfc50b..0000000000 --- a/recipes/udev/udev-165/init +++ /dev/null @@ -1,75 +0,0 @@ -#!/bin/sh -e - -### BEGIN INIT INFO -# Provides: udev -# Required-Start: mountvirtfs -# Required-Stop: -# Default-Start: S -# Default-Stop: -# Short-Description: Start udevd, populate /dev and load drivers. -### END INIT INFO - -export TZ=/etc/localtime - -[ -d /sys/class ] || exit 1 -[ -r /proc/mounts ] || exit 1 -[ -x /sbin/udevd ] || exit 1 -[ -f /etc/default/udev ] && . /etc/default/udev -[ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf - -kill_udevd() { - if [ -x /sbin/pidof ]; then - pid=`/sbin/pidof -x udevd` - [ -n "$pid" ] && kill $pid - fi -} - -export ACTION=add -# propagate /dev from /sys -echo "Starting udev" - -# mount the tmpfs on /dev, if not already done -LANG=C awk "\$2 == \"/dev\" && \$3 == \"tmpfs\" { exit 1 }" /proc/mounts && { - mount -n -o mode=0755 -t tmpfs none "/dev" - mkdir -m 0755 /dev/pts - mkdir -m 1777 /dev/shm -} - -if [ "$DEVCACHE" != "" ]; then - # Invalidate udev cache if the kernel or its bootargs/cmdline have changed - [ -x /bin/uname ] && /bin/uname -mrspv > /tmp/uname || touch /tmp/uname - [ -r /proc/cmdline ] && cat /proc/cmdline > /tmp/cmdline || touch /tmp/cmdline - [ -r /proc/devices ] && cat /proc/devices > /tmp/devices || touch /tmp/devices - [ -r /proc/atags ] && cat /proc/atags > /tmp/atags || touch /tmp/atags - if [ -e $DEVCACHE ] && \ - cmp -s /tmp/uname /etc/udev/saved.uname && \ - cmp -s /tmp/cmdline /etc/udev/saved.cmdline && \ - cmp -s /tmp/devices /etc/udev/saved.devices && \ - cmp -s /tmp/atags /etc/udev/saved.atags; then - (cd /; tar xf $DEVCACHE > /dev/null 2>&1) - not_first_boot=1 - fi -fi - -if [ ! -e "/lib/modules/$(uname -r)"/modules.dep ] ; then - mkdir -p /lib/modules/$(uname -r) - depmod -ae -fi - -# make_extra_nodes -kill_udevd > "/dev/null" 2>&1 - - # trigger the sorted events - echo -e '\000\000\000\000' > /proc/sys/kernel/hotplug - /sbin/udevd -d - - /sbin/udevadm control --env STARTUP=1 - if [ "$not_first_boot" != "" ];then - /sbin/udevadm trigger --subsystem-nomatch=tty --subsystem-nomatch=mem --subsystem-nomatch=vc --subsystem-nomatch=vtconsole --subsystem-nomatch=misc --subsystem-nomatch=dcon --subsystem-nomatch=pci_bus --subsystem-nomatch=graphics --subsystem-nomatch=backlight --subsystem-nomatch=video4linux --subsystem-nomatch=platform - (/sbin/udevadm settle --timeout=8; /sbin/udevadm control --env STARTUP=)& - else - /sbin/udevadm trigger - /sbin/udevadm settle - fi - -exit 0 diff --git a/recipes/udev/udev-165/local.rules b/recipes/udev/udev-165/local.rules deleted file mode 100644 index da4b38593c..0000000000 --- a/recipes/udev/udev-165/local.rules +++ /dev/null @@ -1,35 +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" - -# The first rtc device is symlinked to /dev/rtc -KERNEL=="rtc0", SYMLINK+="rtc" - -#The first framebuffer is symlinked to /dev/fb -KERNEL=="fb0", SYMLINK+="fb" - -# Try and modprobe for drivers for new hardware -ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}" - -# Create a symlink to any touchscreen input device -SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0" -SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="ads7846", SYMLINK+="input/touchscreen0" diff --git a/recipes/udev/udev-165/omap3-pandora/local.rules b/recipes/udev/udev-165/omap3-pandora/local.rules deleted file mode 100644 index e433cf9593..0000000000 --- a/recipes/udev/udev-165/omap3-pandora/local.rules +++ /dev/null @@ -1,40 +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" - -# The first rtc device is symlinked to /dev/rtc -KERNEL=="rtc0", SYMLINK+="rtc" - -#The first framebuffer is symlinked to /dev/fb -KERNEL=="fb0", SYMLINK+="fb" - -# Try and modprobe for drivers for new hardware -ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}" - -# Create a symlink to any touchscreen input device -SUBSYSTEM=="input", KERNEL=="event[0-9]*", SYSFS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0" -SUBSYSTEM=="input", KERNEL=="event[0-9]*", SYSFS{modalias}=="ads7846", SYMLINK+="input/touchscreen0" - -# 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"
\ No newline at end of file diff --git a/recipes/udev/udev-165/permissions.rules b/recipes/udev/udev-165/permissions.rules deleted file mode 100644 index f4f94a6dbe..0000000000 --- a/recipes/udev/udev-165/permissions.rules +++ /dev/null @@ -1,110 +0,0 @@ -ACTION!="add", GOTO="permissions_end" - -# devices needed to load the drivers providing them -KERNEL=="tun", OPTIONS+="ignore_remove" -KERNEL=="ppp", OPTIONS+="ignore_remove" -KERNEL=="loop[0-9]*", OPTIONS+="ignore_remove" - -# default permissions for block devices -SUBSYSTEM=="block", GROUP="disk" -# the aacraid driver is broken and reports that disks removable (see #404927) -SUBSYSTEM=="block", ATTRS{removable}=="1", \ - DRIVERS!="aacraid", GROUP="floppy" -# all block devices on these buses are "removable" -SUBSYSTEM=="block", SUBSYSTEMS=="usb|ieee1394|mmc|pcmcia", GROUP="floppy" - -# IDE devices -KERNEL=="hd[a-z]|pcd[0-9]*", DRIVERS=="ide-cdrom|pcd", \ - IMPORT{program}="cdrom_id --export $tempnode" -ENV{ID_CDROM}=="?*", GROUP="cdrom" -KERNEL=="ht[0-9]*", GROUP="tape" -KERNEL=="nht[0-9]*", GROUP="tape" - -# SCSI devices -KERNEL=="sr[0-9]*", IMPORT{program}="cdrom_id --export $tempnode" -SUBSYSTEMS=="scsi", ATTRS{type}=="1", GROUP="tape" -SUBSYSTEMS=="scsi", ATTRS{type}=="4", GROUP="cdrom" -SUBSYSTEMS=="scsi", ATTRS{type}=="5", GROUP="cdrom" -SUBSYSTEMS=="scsi", ATTRS{type}=="8", GROUP="tape" - -# USB devices -KERNEL=="legousbtower*", MODE="0666" -KERNEL=="lp[0-9]*", SUBSYSTEMS=="usb", GROUP="lp" - -# usbfs-like devices -SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", \ - MODE="0664" - -# iRiver music players -SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", GROUP="plugdev", \ - ATTRS{idVendor}=="4102", ATTRS{idProduct}=="10[01][135789]" - -# serial devices -SUBSYSTEM=="tty", GROUP="dialout" -SUBSYSTEM=="capi", GROUP="dialout" -SUBSYSTEM=="slamr", GROUP="dialout" -SUBSYSTEM=="zaptel", GROUP="dialout" - -# vc devices (all members of the tty subsystem) -KERNEL=="ptmx", MODE="0666", GROUP="root" -KERNEL=="console", MODE="0600", GROUP="root" -KERNEL=="tty", MODE="0666", GROUP="root" -KERNEL=="tty[0-9]*", GROUP="root" -KERNEL=="pty*", MODE="0666", GROUP="tty" - -# video devices -SUBSYSTEM=="video4linux", GROUP="video" -SUBSYSTEM=="drm", GROUP="video" -SUBSYSTEM=="dvb", GROUP="video" -SUBSYSTEM=="em8300", GROUP="video" -SUBSYSTEM=="graphics", GROUP="video" -SUBSYSTEM=="nvidia", GROUP="video" - -# misc devices -KERNEL=="random", MODE="0666" -KERNEL=="urandom", MODE="0666" -KERNEL=="mem", MODE="0640", GROUP="kmem" -KERNEL=="kmem", MODE="0640", GROUP="kmem" -KERNEL=="port", MODE="0640", GROUP="kmem" -KERNEL=="full", MODE="0666" -KERNEL=="null", MODE="0666" -KERNEL=="zero", MODE="0666" -KERNEL=="inotify", MODE="0666" -KERNEL=="sgi_fetchop", MODE="0666" -KERNEL=="sonypi", MODE="0666" -KERNEL=="agpgart", GROUP="video" -KERNEL=="rtc|rtc[0-9]*", GROUP="audio" -KERNEL=="kqemu", MODE="0666" -KERNEL=="tun", MODE="0666", - -KERNEL=="cdemu[0-9]*", GROUP="cdrom" -KERNEL=="pktcdvd[0-9]*", GROUP="cdrom" -KERNEL=="pktcdvd", MODE="0644" - -# printers and parallel devices -SUBSYSTEM=="printer", GROUP="lp" -SUBSYSTEM=="ppdev", GROUP="lp" -KERNEL=="irlpt*", GROUP="lp" -KERNEL=="pt[0-9]*", GROUP="tape" -KERNEL=="pht[0-9]*", GROUP="tape" - -# sound devices -SUBSYSTEM=="sound", GROUP="audio" - -# ieee1394 devices -KERNEL=="raw1394", GROUP="disk" -KERNEL=="dv1394*", GROUP="video" -KERNEL=="video1394*", GROUP="video" - -# input devices -KERNEL=="event[0-9]*", ATTRS{name}=="*dvb*|*DVB*|* IR *" \ - MODE="0664", GROUP="video" -KERNEL=="js[0-9]*", MODE="0664" -KERNEL=="lirc[0-9]*", GROUP="video" - -# AOE character devices -SUBSYSTEM=="aoe", MODE="0220", GROUP="disk" -SUBSYSTEM=="aoe", KERNEL=="err", MODE="0440" - -LABEL="permissions_end" - diff --git a/recipes/udev/udev-165/run.rules b/recipes/udev/udev-165/run.rules deleted file mode 100644 index 75d71375bb..0000000000 --- a/recipes/udev/udev-165/run.rules +++ /dev/null @@ -1,14 +0,0 @@ -# debugging monitor -RUN+="socket:/org/kernel/udev/monitor" - -# run a command on remove events -ACTION=="remove", ENV{REMOVE_CMD}!="", RUN+="$env{REMOVE_CMD}" - -# ignore the events generated by virtual consoles -KERNEL=="ptmx", OPTIONS+="last_rule" -KERNEL=="console", OPTIONS+="last_rule" -KERNEL=="tty" , OPTIONS+="last_rule" -KERNEL=="tty[0-9]*", OPTIONS+="last_rule" -KERNEL=="pty*", OPTIONS+="last_rule" -SUBSYSTEM=="vc", OPTIONS+="last_rule" - diff --git a/recipes/udev/udev-165/udev-replace-le16toh.patch b/recipes/udev/udev-165/udev-replace-le16toh.patch deleted file mode 100644 index 7776c9a10e..0000000000 --- a/recipes/udev/udev-165/udev-replace-le16toh.patch +++ /dev/null @@ -1,21 +0,0 @@ -This patch is needed on uclibc. - --Khem - -Index: udev-151/extras/ata_id/ata_id.c -=================================================================== ---- udev-151.orig/extras/ata_id/ata_id.c 2010-06-04 14:08:41.912730501 -0700 -+++ udev-151/extras/ata_id/ata_id.c 2010-06-04 14:09:31.492734527 -0700 -@@ -168,7 +168,11 @@ static void disk_identify_fixup_uint16 ( - uint16_t *p; - - p = (uint16_t *) identify; -- p[offset_words] = le16toh (p[offset_words]); -+#if __BYTE_ORDER == __LITTLE_ENDIAN -+ p[offset_words] = p[offset_words]; -+#else -+ p[offset_words] = __bswap_16 (p[offset_words]); -+#endif - } - - /** diff --git a/recipes/udev/udev-165/udev-replace-lutimes.patch b/recipes/udev/udev-165/udev-replace-lutimes.patch deleted file mode 100644 index dd77897345..0000000000 --- a/recipes/udev/udev-165/udev-replace-lutimes.patch +++ /dev/null @@ -1,25 +0,0 @@ -This patch is needed on uclibc - --Khem -Index: udev-151/udev/udev-node.c -=================================================================== ---- udev-151.orig/udev/udev-node.c 2010-06-04 14:18:59.082727182 -0700 -+++ udev-151/udev/udev-node.c 2010-06-04 14:20:27.485282812 -0700 -@@ -57,7 +57,7 @@ int udev_node_mknod(struct udev_device * - preserve = 1; - udev_selinux_lsetfilecon(udev, file, mode); - /* update time stamp when we re-use the node, like on media change events */ -- utimes(file, NULL); -+ utimensat(AT_FDCWD, file, NULL, 0); - } else { - char file_tmp[UTIL_PATH_SIZE + sizeof(TMP_FILE_EXT)]; - -@@ -178,7 +178,7 @@ static int node_symlink(struct udev *ude - info(udev, "preserve already existing symlink '%s' to '%s'\n", - slink, target); - udev_selinux_lsetfilecon(udev, slink, S_IFLNK); -- lutimes(slink, NULL); -+ utimensat(AT_FDCWD, slink, NULL, AT_SYMLINK_NOFOLLOW); - goto exit; - } - } diff --git a/recipes/udev/udev-165/udev.rules b/recipes/udev/udev-165/udev.rules deleted file mode 100644 index c20cdcc153..0000000000 --- a/recipes/udev/udev-165/udev.rules +++ /dev/null @@ -1,113 +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 -# - -# workaround for devices which do not report media changes -SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTR{removable}=="1", \ - ENV{ID_MODEL}=="IOMEGA_ZIP*", OPTIONS+="all_partitions" -SUBSYSTEMS=="ide", KERNEL=="hd[a-z]", ATTRS{media}=="floppy", \ - OPTIONS+="all_partitions" - -# SCSI devices -SUBSYSTEMS=="scsi", KERNEL=="sr[0-9]*", NAME="scd%n", SYMLINK+="sr%n" - -# USB devices -SUBSYSTEMS=="usb", KERNEL=="auer[0-9]*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="cpad[0-9]*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="dabusb*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="hiddev*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="legousbtower*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k" -SUBSYSTEMS=="usb", KERNEL=="ttyUSB*", \ - ATTRS{product}=="Palm Handheld*|Handspring Visor|palmOne Handheld", \ - SYMLINK+="pilot" - -# usbfs-like devices -SUBSYSTEM=="usb_device", PROGRAM="/bin/sh -c 'K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}'", ACTION=="add", \ - NAME="%c" -SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}" - -# serial devices -KERNEL=="capi", NAME="capi20", SYMLINK+="isdn/capi20" -KERNEL=="capi[0-9]*", NAME="capi/%n" - -# video devices -KERNEL=="dvb*", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; printf dvb/adapter%%i/%%s $${K%%%%.*} $${K#*.}", ACTION=="add", \ - NAME="%c" -KERNEL=="card[0-9]*", NAME="dri/%k" - -# misc devices -KERNEL=="hw_random", NAME="hwrng" -KERNEL=="tun", NAME="net/%k" -KERNEL=="evtchn", NAME="xen/%k" - -KERNEL=="cdemu[0-9]*", NAME="cdemu/%n" -KERNEL=="pktcdvd[0-9]*", NAME="pktcdvd/%n" -KERNEL=="pktcdvd", NAME="pktcdvd/control" - -KERNEL=="cpu[0-9]*", NAME="cpu/%n/cpuid" -KERNEL=="msr[0-9]*", NAME="cpu/%n/msr" -KERNEL=="microcode", NAME="cpu/microcode" - -KERNEL=="umad*", NAME="infiniband/%k" -KERNEL=="issm*", NAME="infiniband/%k" -KERNEL=="uverbs*", NAME="infiniband/%k" -KERNEL=="ucm*", NAME="infiniband/%k" -KERNEL=="rdma_ucm", NAME="infiniband/%k" - -# ALSA devices -KERNEL=="controlC[0-9]*", NAME="snd/%k" -KERNEL=="hwC[D0-9]*", NAME="snd/%k" -KERNEL=="pcmC[D0-9cp]*", NAME="snd/%k" -KERNEL=="midiC[D0-9]*", NAME="snd/%k" -KERNEL=="timer", NAME="snd/%k" -KERNEL=="seq", NAME="snd/%k" - -# ieee1394 devices -KERNEL=="dv1394*", NAME="dv1394/%n" -KERNEL=="video1394*", NAME="video1394/%n" - -# input devices -KERNEL=="mice", NAME="input/%k" -KERNEL=="mouse[0-9]*", NAME="input/%k" -KERNEL=="event[0-9]*", NAME="input/%k" -KERNEL=="js[0-9]*", NAME="input/%k" -KERNEL=="ts[0-9]*", NAME="input/%k" -KERNEL=="uinput", NAME="input/%k" - -# Zaptel -KERNEL=="zapctl", NAME="zap/ctl" -KERNEL=="zaptimer", NAME="zap/timer" -KERNEL=="zapchannel", NAME="zap/channel" -KERNEL=="zappseudo", NAME="zap/pseudo" -KERNEL=="zap[0-9]*", NAME="zap/%n" - -# AOE character devices -SUBSYSTEM=="aoe", KERNEL=="discover", NAME="etherd/%k" -SUBSYSTEM=="aoe", KERNEL=="err", NAME="etherd/%k" -SUBSYSTEM=="aoe", KERNEL=="interfaces", NAME="etherd/%k" -SUBSYSTEM=="aoe", KERNEL=="revalidate", NAME="etherd/%k" - -# device mapper creates its own device nodes, so ignore these -KERNEL=="dm-[0-9]*", OPTIONS+="ignore_device" -KERNEL=="device-mapper", NAME="mapper/control" - -KERNEL=="rfcomm[0-9]*", GROUP="users", MODE="0660" - -# Samsung UARTS -KERNEL=="s3c2410_serial[0-9]", NAME="ttySAC%n" - -# MXC UARTs -KERNEL=="ttymxc[0-4]", NAME="ttymxc%n" - diff --git a/recipes/udev/files/50-hostap_cs.rules b/recipes/udev/udev/50-hostap_cs.rules index efefdc58fc..efefdc58fc 100644 --- a/recipes/udev/files/50-hostap_cs.rules +++ b/recipes/udev/udev/50-hostap_cs.rules diff --git a/recipes/udev/files/akita/default b/recipes/udev/udev/akita/default index d0050b873c..d0050b873c 100644 --- a/recipes/udev/files/akita/default +++ b/recipes/udev/udev/akita/default diff --git a/recipes/udev/files/akita/mount.blacklist b/recipes/udev/udev/akita/mount.blacklist index 3f7b52715b..3f7b52715b 100644 --- a/recipes/udev/files/akita/mount.blacklist +++ b/recipes/udev/udev/akita/mount.blacklist diff --git a/recipes/udev/files/angstrom/mount.sh b/recipes/udev/udev/angstrom/mount.sh index 81bcfba5e3..81bcfba5e3 100644 --- a/recipes/udev/files/angstrom/mount.sh +++ b/recipes/udev/udev/angstrom/mount.sh diff --git a/recipes/udev/udev-141/bug/10-mx31.rules b/recipes/udev/udev/bug/10-mx31.rules index de427fc8b2..de427fc8b2 100644 --- a/recipes/udev/udev-141/bug/10-mx31.rules +++ b/recipes/udev/udev/bug/10-mx31.rules diff --git a/recipes/udev/udev-141/bug/30-BUG.rules b/recipes/udev/udev/bug/30-BUG.rules index 06faa6bb91..06faa6bb91 100644 --- a/recipes/udev/udev-141/bug/30-BUG.rules +++ b/recipes/udev/udev/bug/30-BUG.rules diff --git a/recipes/udev/udev-141/bug/bmi_eventpipe.sh b/recipes/udev/udev/bug/bmi_eventpipe.sh index acbae56118..acbae56118 100644 --- a/recipes/udev/udev-141/bug/bmi_eventpipe.sh +++ b/recipes/udev/udev/bug/bmi_eventpipe.sh diff --git a/recipes/udev/files/c7x0/default b/recipes/udev/udev/c7x0/default index d0050b873c..d0050b873c 100644 --- a/recipes/udev/files/c7x0/default +++ b/recipes/udev/udev/c7x0/default diff --git a/recipes/udev/files/c7x0/mount.blacklist b/recipes/udev/udev/c7x0/mount.blacklist index 3f7b52715b..3f7b52715b 100644 --- a/recipes/udev/files/c7x0/mount.blacklist +++ b/recipes/udev/udev/c7x0/mount.blacklist diff --git a/recipes/udev/udev-141/cache b/recipes/udev/udev/cache index 6936170b85..6936170b85 100644 --- a/recipes/udev/udev-141/cache +++ b/recipes/udev/udev/cache diff --git a/recipes/udev/files/collie/default b/recipes/udev/udev/collie/default index d0050b873c..d0050b873c 100644 --- a/recipes/udev/files/collie/default +++ b/recipes/udev/udev/collie/default diff --git a/recipes/udev/files/collie/mount.blacklist b/recipes/udev/udev/collie/mount.blacklist index 3f7b52715b..3f7b52715b 100644 --- a/recipes/udev/files/collie/mount.blacklist +++ b/recipes/udev/udev/collie/mount.blacklist diff --git a/recipes/udev/udev-124/default b/recipes/udev/udev/default index 5c4937a9a0..5c4937a9a0 100644 --- a/recipes/udev/udev-124/default +++ b/recipes/udev/udev/default diff --git a/recipes/udev/files/devfs-udev.rules b/recipes/udev/udev/devfs-udev.rules index 0ba1ad4e7f..0ba1ad4e7f 100644 --- a/recipes/udev/files/devfs-udev.rules +++ b/recipes/udev/udev/devfs-udev.rules diff --git a/recipes/udev/files/poodle/default b/recipes/udev/udev/hipox/default index d0050b873c..d0050b873c 100644 --- a/recipes/udev/files/poodle/default +++ b/recipes/udev/udev/hipox/default diff --git a/recipes/udev/udev-141/init b/recipes/udev/udev/init index c0ecdfc50b..c0ecdfc50b 100644 --- a/recipes/udev/udev-141/init +++ b/recipes/udev/udev/init diff --git a/recipes/udev/files/links.conf b/recipes/udev/udev/links.conf index a9f8b58b27..a9f8b58b27 100644 --- a/recipes/udev/files/links.conf +++ b/recipes/udev/udev/links.conf diff --git a/recipes/udev/udev-151/local.rules b/recipes/udev/udev/local.rules index da4b38593c..da4b38593c 100644 --- a/recipes/udev/udev-151/local.rules +++ b/recipes/udev/udev/local.rules diff --git a/recipes/udev/files/mount.blacklist b/recipes/udev/udev/mount.blacklist index d3ebb17176..d3ebb17176 100644 --- a/recipes/udev/files/mount.blacklist +++ b/recipes/udev/udev/mount.blacklist diff --git a/recipes/udev/files/mount.sh b/recipes/udev/udev/mount.sh index 440dcee57b..440dcee57b 100644 --- a/recipes/udev/files/mount.sh +++ b/recipes/udev/udev/mount.sh diff --git a/recipes/udev/files/network.sh b/recipes/udev/udev/network.sh index 182c26d86a..182c26d86a 100644 --- a/recipes/udev/files/network.sh +++ b/recipes/udev/udev/network.sh diff --git a/recipes/udev/files/noasmlinkage.patch b/recipes/udev/udev/noasmlinkage.patch index 0d8e854c0e..0d8e854c0e 100644 --- a/recipes/udev/files/noasmlinkage.patch +++ b/recipes/udev/udev/noasmlinkage.patch diff --git a/recipes/udev/files/nokia900/10-cmt_speech.rules b/recipes/udev/udev/nokia900/10-cmt_speech.rules index 25f46efeaa..25f46efeaa 100644 --- a/recipes/udev/files/nokia900/10-cmt_speech.rules +++ b/recipes/udev/udev/nokia900/10-cmt_speech.rules diff --git a/recipes/udev/files/nokia900/70-persistent-net.rules b/recipes/udev/udev/nokia900/70-persistent-net.rules index b68f47c5f1..b68f47c5f1 100644 --- a/recipes/udev/files/nokia900/70-persistent-net.rules +++ b/recipes/udev/udev/nokia900/70-persistent-net.rules diff --git a/recipes/udev/files/nokia900/nokia-n900-mac-hack.sh b/recipes/udev/udev/nokia900/nokia-n900-mac-hack.sh index c0b8251ae9..c0b8251ae9 100644 --- a/recipes/udev/files/nokia900/nokia-n900-mac-hack.sh +++ b/recipes/udev/udev/nokia900/nokia-n900-mac-hack.sh diff --git a/recipes/udev/files/nokia900/udev-rules-nokia-n900-hacks.rules b/recipes/udev/udev/nokia900/udev-rules-nokia-n900-hacks.rules index fa2ddb8098..fa2ddb8098 100644 --- a/recipes/udev/files/nokia900/udev-rules-nokia-n900-hacks.rules +++ b/recipes/udev/udev/nokia900/udev-rules-nokia-n900-hacks.rules diff --git a/recipes/udev/files/nokia900/udev-rules-nokia-n900-snd.rules b/recipes/udev/udev/nokia900/udev-rules-nokia-n900-snd.rules index 413c1656f0..413c1656f0 100644 --- a/recipes/udev/files/nokia900/udev-rules-nokia-n900-snd.rules +++ b/recipes/udev/udev/nokia900/udev-rules-nokia-n900-snd.rules diff --git a/recipes/udev/udev-141/omap3-pandora/local.rules b/recipes/udev/udev/omap3-pandora/local.rules index e433cf9593..e433cf9593 100644 --- a/recipes/udev/udev-141/omap3-pandora/local.rules +++ b/recipes/udev/udev/omap3-pandora/local.rules diff --git a/recipes/udev/udev-162/permissions.rules b/recipes/udev/udev/permissions.rules index f4f94a6dbe..f4f94a6dbe 100644 --- a/recipes/udev/udev-162/permissions.rules +++ b/recipes/udev/udev/permissions.rules diff --git a/recipes/udev/files/spitz/default b/recipes/udev/udev/poodle/default index d0050b873c..d0050b873c 100644 --- a/recipes/udev/files/spitz/default +++ b/recipes/udev/udev/poodle/default diff --git a/recipes/udev/files/poodle/mount.blacklist b/recipes/udev/udev/poodle/mount.blacklist index 3f7b52715b..3f7b52715b 100644 --- a/recipes/udev/files/poodle/mount.blacklist +++ b/recipes/udev/udev/poodle/mount.blacklist diff --git a/recipes/udev/udev-124/run.rules b/recipes/udev/udev/run.rules index 75d71375bb..75d71375bb 100644 --- a/recipes/udev/udev-124/run.rules +++ b/recipes/udev/udev/run.rules diff --git a/recipes/udev/files/shr/mount.blacklist b/recipes/udev/udev/shr/mount.blacklist index 117ac9b861..117ac9b861 100644 --- a/recipes/udev/files/shr/mount.blacklist +++ b/recipes/udev/udev/shr/mount.blacklist diff --git a/recipes/udev/files/slugos/mount.blacklist b/recipes/udev/udev/slugos/mount.blacklist index d9da5cfd71..d9da5cfd71 100644 --- a/recipes/udev/files/slugos/mount.blacklist +++ b/recipes/udev/udev/slugos/mount.blacklist diff --git a/recipes/udev/files/slugos/mount.sh b/recipes/udev/udev/slugos/mount.sh index b5298e97a2..b5298e97a2 100644 --- a/recipes/udev/files/slugos/mount.sh +++ b/recipes/udev/udev/slugos/mount.sh diff --git a/recipes/udev/files/tosa/default b/recipes/udev/udev/spitz/default index d0050b873c..d0050b873c 100644 --- a/recipes/udev/files/tosa/default +++ b/recipes/udev/udev/spitz/default diff --git a/recipes/udev/files/spitz/mount.blacklist b/recipes/udev/udev/spitz/mount.blacklist index 3f7b52715b..3f7b52715b 100644 --- a/recipes/udev/files/spitz/mount.blacklist +++ b/recipes/udev/udev/spitz/mount.blacklist diff --git a/recipes/udev/udev-141/hipox/default b/recipes/udev/udev/tosa/default index d0050b873c..d0050b873c 100644 --- a/recipes/udev/udev-141/hipox/default +++ b/recipes/udev/udev/tosa/default diff --git a/recipes/udev/files/tosa/mount.blacklist b/recipes/udev/udev/tosa/mount.blacklist index 3f7b52715b..3f7b52715b 100644 --- a/recipes/udev/files/tosa/mount.blacklist +++ b/recipes/udev/udev/tosa/mount.blacklist diff --git a/recipes/udev/files/udev-compat-wrapper-patch b/recipes/udev/udev/udev-compat-wrapper-patch index c90d05aefa..c90d05aefa 100644 --- a/recipes/udev/files/udev-compat-wrapper-patch +++ b/recipes/udev/udev/udev-compat-wrapper-patch diff --git a/recipes/udev/udev-151/udev-replace-le16toh.patch b/recipes/udev/udev/udev-replace-le16toh.patch index 7776c9a10e..7776c9a10e 100644 --- a/recipes/udev/udev-151/udev-replace-le16toh.patch +++ b/recipes/udev/udev/udev-replace-le16toh.patch diff --git a/recipes/udev/udev-151/udev-replace-lutimes.patch b/recipes/udev/udev/udev-replace-lutimes.patch index dd77897345..dd77897345 100644 --- a/recipes/udev/udev-151/udev-replace-lutimes.patch +++ b/recipes/udev/udev/udev-replace-lutimes.patch diff --git a/recipes/udev/udev-151/udev.rules b/recipes/udev/udev/udev.rules index c20cdcc153..c20cdcc153 100644 --- a/recipes/udev/udev-151/udev.rules +++ b/recipes/udev/udev/udev.rules diff --git a/recipes/udev/files/udev_network_queue.sh b/recipes/udev/udev/udev_network_queue.sh index 05e08e9d1b..05e08e9d1b 100644 --- a/recipes/udev/files/udev_network_queue.sh +++ b/recipes/udev/udev/udev_network_queue.sh diff --git a/recipes/udev/files/udevsynthesize.patch b/recipes/udev/udev/udevsynthesize.patch index 7811188485..7811188485 100644 --- a/recipes/udev/files/udevsynthesize.patch +++ b/recipes/udev/udev/udevsynthesize.patch diff --git a/recipes/udev/files/udevsynthesize.sh b/recipes/udev/udev/udevsynthesize.sh index d58217c144..d58217c144 100644 --- a/recipes/udev/files/udevsynthesize.sh +++ b/recipes/udev/udev/udevsynthesize.sh |