aboutsummaryrefslogtreecommitdiffstats
path: root/package/udev/files
diff options
context:
space:
mode:
authorJeremy Kerr <​jk@ozlabs.org>2008-04-12 23:24:22 +0000
committerJeremy Kerr <​jk@ozlabs.org>2008-04-12 23:24:22 +0000
commit199a79d867c83e7380fd8e59b86b9a07a110fb95 (patch)
tree2eccf3ce02131f9f1c17ead5d7d1bd2a88018ad9 /package/udev/files
parent4ec5f133bb0b800ef8bfa0c8687a8f317b092162 (diff)
downloadupstream-199a79d867c83e7380fd8e59b86b9a07a110fb95.tar.gz
upstream-199a79d867c83e7380fd8e59b86b9a07a110fb95.tar.bz2
upstream-199a79d867c83e7380fd8e59b86b9a07a110fb95.zip
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> SVN-Revision: 10804
Diffstat (limited to 'package/udev/files')
-rw-r--r--package/udev/files/20-input-grouping.rules9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/udev/files/20-input-grouping.rules b/package/udev/files/20-input-grouping.rules
new file mode 100644
index 0000000000..b124a1747a
--- /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"