Contents of /trunk/udev/udev-persistent-input.rules.magellan
Parent Directory | Revision Log
Revision 121 -
(show annotations)
(download)
Wed Mar 21 16:48:37 2007 UTC (17 years, 6 months ago) by niro
File size: 1492 byte(s)
Wed Mar 21 16:48:37 2007 UTC (17 years, 6 months ago) by niro
File size: 1492 byte(s)
- moved to udev root. manage versions with tags now
1 | # /etc/udev/rules/60-persistent-input.rules: device naming rules for udev |
2 | # $Header: /root/magellan-cvs/src/udev/udev-persistent-input.rules.magellan,v 1.1 2007-03-21 16:48:37 niro Exp $ |
3 | |
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 | ENV{ID_SERIAL}=="", ENV{ID_SERIAL}="noserial" |
21 | |
22 | # by-id links |
23 | KERNEL=="mouse*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_CLASS}" |
24 | KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-$env{ID_CLASS}" |
25 | |
26 | # by-path |
27 | IMPORT{program}="path_id %p" |
28 | ENV{ID_PATH}=="?*", KERNEL=="mouse*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}" |
29 | ENV{ID_PATH}=="?*", KERNEL=="event*", SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{ID_CLASS}" |
30 | |
31 | LABEL="persistent_input_end" |
32 |