From patchwork Fri Dec 16 09:15:50 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/3] udev: add a link between /dev/input/event* with keyboard Date: Fri, 16 Dec 2011 09:15:50 -0000 From: Xiaofeng Yan X-Patchwork-Id: 17107 Message-Id: To: From: Xiaofeng Yan 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 --- meta/recipes-core/udev/udev-164/local.rules | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 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"