summaryrefslogtreecommitdiff
path: root/meta/recipes-core/udev/files/udevsynthesize.sh
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-12-20 13:00:05 +0000
committerSaul Wold <sgw@linux.intel.com>2012-01-02 20:26:25 -0800
commit7376f027c39716561b513a70f6e7f86fb14df178 (patch)
tree4a2fdda2fcb0477cf066acf402866346c2c01d09 /meta/recipes-core/udev/files/udevsynthesize.sh
parent5b1b289bf7503f476990840bc790e32afb6bccdb (diff)
downloadopenembedded-core-7376f027c39716561b513a70f6e7f86fb14df178.tar.gz
openembedded-core-7376f027c39716561b513a70f6e7f86fb14df178.tar.bz2
openembedded-core-7376f027c39716561b513a70f6e7f86fb14df178.tar.xz
openembedded-core-7376f027c39716561b513a70f6e7f86fb14df178.zip
udev: drop 145 version
The 164 version has been the default version for some time and as we don't have any clear reasoning to keep 145 around, we're removing it now. Some files were also removed as 164 recipe provides specific versions of it and thus those were going to be unused. Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'meta/recipes-core/udev/files/udevsynthesize.sh')
-rw-r--r--meta/recipes-core/udev/files/udevsynthesize.sh51
1 files changed, 0 insertions, 51 deletions
diff --git a/meta/recipes-core/udev/files/udevsynthesize.sh b/meta/recipes-core/udev/files/udevsynthesize.sh
deleted file mode 100644
index d58217c14..000000000
--- a/meta/recipes-core/udev/files/udevsynthesize.sh
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/sh -e
-
-load_input_modules() {
- for module in mousedev evdev joydev; do
- modprobe -q $module || true
- done
-}
-
-if [ ! -e /sys/class/mem/null/uevent ]; then # <= 2.6.14
- /lib/udev/udevsynthesize
- load_input_modules
- exit 0
-fi
-
-# replace $IFS with something which is not likely to appear in a sysfs path,
-# because some buggy drivers have spaces in their names
-oldifs="$IFS"
-IFS="|"
-
-for file in /sys/bus/*/devices/*/uevent /sys/class/*/*/uevent \
- /sys/block/*/uevent /sys/block/*/*/uevent; do
- case "$file" in
- */device/uevent) ;; # skip followed device symlinks
- */\*/*) ;;
-
- */class/mem/*) # for /dev/null
- first="$first${IFS}$file" ;;
-
- */block/md[0-9]*)
- last="$last${IFS}$file" ;;
-
- *)
- default="$default${IFS}$file" ;;
- esac
-done
-
-for file in $first${IFS}$default${IFS}$last; do
- [ "$file" ] || continue
- echo 'add' > "$file" || true
-done
-
-IFS="$oldifs"
-
-case "$(uname -r)" in
- 2.6.1[0-5]|2.6.1[0-5][!0-9]*) # <= 2.6.15
- load_input_modules
- ;;
-esac
-
-exit 0
-