diff options
author | jk <jk@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-04-12 23:24:22 +0000 |
---|---|---|
committer | jk <jk@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2008-04-12 23:24:22 +0000 |
commit | 9d35bf3e30b5f13f1de316900ca42f9332dd84c0 (patch) | |
tree | 061885a02890bce70a8f74d0b3db5bba08e75a2f /package/udev | |
parent | aff6fa1a1d0d4ce7debefa250e4845e4b86811e4 (diff) |
[package/udev] Group input devices under /dev/input
This change adds a udev rules file to group input devices (via symlinks)
under their usual expected location of /dev/input.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10804 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/udev')
-rw-r--r-- | package/udev/Makefile | 2 | ||||
-rw-r--r-- | package/udev/files/20-input-grouping.rules | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/package/udev/Makefile b/package/udev/Makefile index 127880b6b..336e511f0 100644 --- a/package/udev/Makefile +++ b/package/udev/Makefile @@ -66,6 +66,8 @@ define Package/udev/install $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/udevtest $(1)/usr/bin/ install -d -m0775 $(1)/usr/sbin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/udevmonitor $(1)/usr/sbin/ + install -d -m0775 $(1)/etc/udev/rules.d + $(CP) files/20-input-grouping.rules $(1)/etc/udev/rules.d/ endef define Package/udevtrigger/install diff --git a/package/udev/files/20-input-grouping.rules b/package/udev/files/20-input-grouping.rules new file mode 100644 index 000000000..b124a1747 --- /dev/null +++ b/package/udev/files/20-input-grouping.rules @@ -0,0 +1,9 @@ +# Input devices, group under /dev/input +SUBSYSTEM!="input", GOTO="input_grouping_end" + +KERNEL=="event[0-9]*", NAME="input/%k" +KERNEL=="mice", NAME="input/%k" +KERNEL=="mouse[0-9]*", NAME="input/%k" +KERNEL=="js[0-9]*", NAME="input/%k" + +LABEL="input_grouping_end" |