summaryrefslogtreecommitdiff
path: root/meta/recipes-core/udev/udev-164/local.rules
diff options
context:
space:
mode:
authorQing He <qing.he@intel.com>2010-12-07 15:00:05 +0800
committerSaul Wold <Saul.Wold@intel.com>2010-12-10 22:01:30 -0800
commit1901134554cd14e2ad9203452dce0cf4502b08be (patch)
treec0e98f927c8fcc1adaac58af876a0be9f0035d20 /meta/recipes-core/udev/udev-164/local.rules
parent8d702d76ff68f6f496af212a3e8d12a0d40cac2f (diff)
downloadopenembedded-core-1901134554cd14e2ad9203452dce0cf4502b08be.tar.gz
openembedded-core-1901134554cd14e2ad9203452dce0cf4502b08be.tar.bz2
openembedded-core-1901134554cd14e2ad9203452dce0cf4502b08be.tar.xz
openembedded-core-1901134554cd14e2ad9203452dce0cf4502b08be.zip
udev: upgrade to version 164
Signed-off-by: Qing He <qing.he@intel.com>
Diffstat (limited to 'meta/recipes-core/udev/udev-164/local.rules')
-rw-r--r--meta/recipes-core/udev/udev-164/local.rules32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-core/udev/udev-164/local.rules b/meta/recipes-core/udev/udev-164/local.rules
new file mode 100644
index 000000000..317dd9f28
--- /dev/null
+++ b/meta/recipes-core/udev/udev-164/local.rules
@@ -0,0 +1,32 @@
+# 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"
+
+# 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"
+