diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-12-20 13:19:53 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-03 12:14:27 +0000 |
commit | e412dbf6cd67702bb50126a0f5ab9aecbe9c90bf (patch) | |
tree | ab1edacb91a0d7ffcee38a146bf964b88dbc5f4b /meta/recipes-core/udev/udev/local.rules | |
parent | 005b67f2824aeb207bef0c054d8ffa38d94ae87e (diff) | |
download | poky-e412dbf6cd67702bb50126a0f5ab9aecbe9c90bf.tar.gz |
udev: reorganize files of 164 version
We merged both files and udev-164 directory onto a single directory
and renamed udev-new.inc onto udev.inc as we have a single version of
udev now.
(From OE-Core rev: abde2a045a39a70a6247a7ae591a131120ab8ed3)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/udev/udev/local.rules')
-rw-r--r-- | meta/recipes-core/udev/udev/local.rules | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-core/udev/udev/local.rules b/meta/recipes-core/udev/udev/local.rules new file mode 100644 index 0000000000..625e49acb1 --- /dev/null +++ b/meta/recipes-core/udev/udev/local.rules | |||
@@ -0,0 +1,35 @@ | |||
1 | # There are a number of modifiers that are allowed to be used in some | ||
2 | # of the different fields. They provide the following subsitutions: | ||
3 | # | ||
4 | # %n the "kernel number" of the device. | ||
5 | # For example, 'sda3' has a "kernel number" of '3' | ||
6 | # %e the smallest number for that name which does not matches an existing node | ||
7 | # %k the kernel name for the device | ||
8 | # %M the kernel major number for the device | ||
9 | # %m the kernel minor number for the device | ||
10 | # %b the bus id for the device | ||
11 | # %c the string returned by the PROGRAM | ||
12 | # %s{filename} the content of a sysfs attribute | ||
13 | # %% the '%' char itself | ||
14 | # | ||
15 | |||
16 | # Media automounting | ||
17 | SUBSYSTEM=="block", ACTION=="add" RUN+="/etc/udev/scripts/mount.sh" | ||
18 | SUBSYSTEM=="block", ACTION=="remove" RUN+="/etc/udev/scripts/mount.sh" | ||
19 | |||
20 | # Handle network interface setup | ||
21 | SUBSYSTEM=="net", ACTION=="add" RUN+="/etc/udev/scripts/network.sh" | ||
22 | SUBSYSTEM=="net", ACTION=="remove" RUN+="/etc/udev/scripts/network.sh" | ||
23 | |||
24 | # The first framebuffer is symlinked to /dev/fb | ||
25 | KERNEL=="fb0", SYMLINK+="fb" | ||
26 | |||
27 | # The first rtc device is symlinked to /dev/rtc | ||
28 | KERNEL=="rtc0", SYMLINK+="rtc" | ||
29 | |||
30 | # Try and modprobe for drivers for new hardware | ||
31 | ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}" | ||
32 | |||
33 | # Create a symlink to any touchscreen input device | ||
34 | SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0" | ||
35 | |||