Annotation of /tags/udev-111-r2/udev/udev-persistent-input.rules.magellan
Parent Directory | Revision Log
Revision 188 -
(hide annotations)
(download)
Thu May 17 19:23:35 2007 UTC (17 years, 4 months ago) by niro
Original Path: trunk/udev/udev-persistent-input.rules.magellan
File size: 1548 byte(s)
Thu May 17 19:23:35 2007 UTC (17 years, 4 months ago) by niro
Original Path: trunk/udev/udev-persistent-input.rules.magellan
File size: 1548 byte(s)
-upgraded to upstream version
1 | niro | 121 | # /etc/udev/rules/60-persistent-input.rules: device naming rules for udev |
2 | niro | 188 | # $Header: /root/magellan-cvs/src/udev/udev-persistent-input.rules.magellan,v 1.2 2007-05-17 19:23:23 niro Exp $ |
3 | niro | 121 | |
4 | ACTION!="add", GOTO="persistent_input_end" | ||
5 | SUBSYSTEM!="input", GOTO="persistent_input_end" | ||
6 | KERNEL=="input[0-9]*", GOTO="persistent_input_end" | ||
7 | |||
8 | # usb devices | ||
9 | SUBSYSTEMS=="usb", IMPORT{program}="usb_id -x" | ||
10 | SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="01", ENV{ID_CLASS}="kbd" | ||
11 | SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="02", ENV{ID_CLASS}="mouse" | ||
12 | |||
13 | # other devices | ||
14 | DRIVERS=="pcspkr", ENV{ID_CLASS}="spkr" | ||
15 | DRIVERS=="atkbd", ENV{ID_CLASS}="kbd" | ||
16 | DRIVERS=="psmouse", ENV{ID_CLASS}="mouse" | ||
17 | ATTRS{name}=="*dvb*|*DVB*|* IR *", ENV{ID_CLASS}="ir" | ||
18 | ATTRS{modalias}=="input:*-*a[068],*|input:*-*a*,[68],*m*", ATTRS{modalias}!="input:*-*k*14A,*r*", ENV{ID_CLASS}="joystick" | ||
19 | |||
20 | niro | 188 | # fill empty serial number |
21 | ENV{ID_CLASS}=="?*", ENV{ID_SERIAL}=="", ENV{ID_SERIAL}="noserial" | ||
22 | niro | 121 | |
23 | # by-id links | ||
24 | niro | 188 | KERNEL=="mouse*|js*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_CLASS}" |
25 | niro | 121 | KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-$env{ID_CLASS}" |
26 | |||
27 | # by-path | ||
28 | IMPORT{program}="path_id %p" | ||
29 | niro | 188 | ENV{ID_PATH}=="?*", KERNEL=="mouse*|js*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}" |
30 | niro | 121 | ENV{ID_PATH}=="?*", KERNEL=="event*", SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{ID_CLASS}" |
31 | |||
32 | LABEL="persistent_input_end" | ||
33 |