[1/3] udev: add a link between /dev/input/event* with keyboard

Submitted by Xiaofeng Yan on Dec. 16, 2011, 9:15 a.m.


Message ID e9b09040a8b888e263e1975675cfd0386953a916.1324025415.git.xiaofeng.yan@windriver.com
State New
Headers show

Commit Message

Xiaofeng Yan Dec. 16, 2011, 9:15 a.m.
From: Xiaofeng Yan <xiaofeng.yan@windriver.com>

keyboard device could be one of event*.
For getting keyboard device to user easier, I make a link between the event of keyboard \
with keyboard0.

Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
 meta/recipes-core/udev/udev-164/local.rules |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-core/udev/udev-164/local.rules b/meta/recipes-core/udev/udev-164/local.rules
index 625e49a..d96f840 100644
--- a/meta/recipes-core/udev/udev-164/local.rules
+++ b/meta/recipes-core/udev/udev-164/local.rules
@@ -32,4 +32,5 @@  ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe
 # 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"
+# Create a symlink to any keyboard input device
+SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{name}=="*keyboard", SYMLINK+="input/keyboard0"