chiark / gitweb /
update Debian rules
[elogind.git] / etc / udev / debian / persistent-input.rules
1 SUBSYSTEM!="input",                     GOTO="persistent_input_end"
2 ACTION!="add",                          GOTO="persistent_input_end"
3 # ignore the mid-level drivers
4 KERNEL=="input[0-9]*",                  GOTO="persistent_input_end"
5
6 # usb devices
7 BUS=="usb",                             IMPORT{program}="usb_id -x"
8 BUS=="usb", SYSFS{bInterfaceClass}=="03", SYSFS{bInterfaceProtocol}=="01", \
9                                         ENV{ID_CLASS}="kbd"
10 BUS=="usb", SYSFS{bInterfaceClass}=="03", SYSFS{bInterfaceProtocol}=="02", \
11                                         ENV{ID_CLASS}="mouse"
12
13 # by-id links, generic and for the event devices
14 KERNEL=="mouse*", \
15         ENV{ID_BUS}=="?*", ENV{ID_SERIAL}=="?*", ENV{ID_CLASS}=="?*", \
16         SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_CLASS}"
17 KERNEL=="event*", \
18         ENV{ID_BUS}=="?*", ENV{ID_SERIAL}=="?*", ENV{ID_CLASS}=="?*", \
19         SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-$env{ID_CLASS}"
20
21 # by-path links
22 IMPORT{program}="path_id %p"
23 KERNEL=="mouse*", ENV{ID_PATH}=="?*", \
24         SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}"
25 KERNEL=="event*", ENV{ID_PATH}=="?*", \
26         SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{ID_CLASS}"
27
28 LABEL="persistent_input_end"
29