summaryrefslogtreecommitdiff
path: root/etc/udev/debian/persistent-input.rules
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-03-29 12:19:21 +0200
committerKay Sievers <kay.sievers@suse.de>2006-03-29 12:19:21 +0200
commit7f1ba7b03f388c1d3d03b0f66a1c0ced7707ac11 (patch)
tree2814e422d0d56dc34d9048d0088b53d629e8863c /etc/udev/debian/persistent-input.rules
parent16801abde1888e24af9652e99522eab8ee8cb057 (diff)
update Debian rules
Diffstat (limited to 'etc/udev/debian/persistent-input.rules')
-rw-r--r--etc/udev/debian/persistent-input.rules29
1 files changed, 29 insertions, 0 deletions
diff --git a/etc/udev/debian/persistent-input.rules b/etc/udev/debian/persistent-input.rules
new file mode 100644
index 0000000000..95021b1646
--- /dev/null
+++ b/etc/udev/debian/persistent-input.rules
@@ -0,0 +1,29 @@
+SUBSYSTEM!="input", GOTO="persistent_input_end"
+ACTION!="add", GOTO="persistent_input_end"
+# ignore the mid-level drivers
+KERNEL=="input[0-9]*", GOTO="persistent_input_end"
+
+# usb devices
+BUS=="usb", IMPORT{program}="usb_id -x"
+BUS=="usb", SYSFS{bInterfaceClass}="03", SYSFS{bInterfaceProtocol}="01", \
+ ENV{ID_CLASS}="kbd"
+BUS=="usb", SYSFS{bInterfaceClass}="03", SYSFS{bInterfaceProtocol}="02", \
+ ENV{ID_CLASS}="mouse"
+
+# by-id links, generic and for the event devices
+KERNEL=="mouse*", \
+ ENV{ID_BUS}=="?*", ENV{ID_SERIAL}=="?*", ENV{ID_CLASS}=="?*", \
+ SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_CLASS}"
+KERNEL=="event*", \
+ ENV{ID_BUS}=="?*", ENV{ID_SERIAL}=="?*", ENV{ID_CLASS}=="?*", \
+ SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-$env{ID_CLASS}"
+
+# by-path links
+IMPORT{program}="path_id %p"
+KERNEL=="mouse*", ENV{ID_PATH}=="?*", \
+ SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}"
+KERNEL=="event*", ENV{ID_PATH}=="?*", \
+ SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{ID_CLASS}"
+
+LABEL="persistent_input_end"
+