[package/udev] Group input devices under /dev/input
authorjk <jk@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 12 Apr 2008 23:24:22 +0000 (23:24 +0000)
committerjk <jk@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 12 Apr 2008 23:24:22 +0000 (23:24 +0000)
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

package/udev/Makefile
package/udev/files/20-input-grouping.rules [new file with mode: 0644]

index 127880b..336e511 100644 (file)
@@ -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 (file)
index 0000000..b124a17
--- /dev/null
@@ -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"
This page took 0.027657 seconds and 4 git commands to generate.