Magellan Linux

Diff of /tags/udev-171-r1/udev-persistent-input.rules.magellan

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 121 by niro, Wed Mar 21 16:48:37 2007 UTC revision 294 by niro, Fri Aug 17 20:08:47 2007 UTC
# Line 1  Line 1 
1  # /etc/udev/rules/60-persistent-input.rules:  device naming rules for udev  # /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 $  # $Header: /root/magellan-cvs/src/udev/udev-persistent-input.rules.magellan,v 1.3 2007-08-17 20:08:47 niro Exp $
3    
4  ACTION!="add", GOTO="persistent_input_end"  ACTION!="add", GOTO="persistent_input_end"
5  SUBSYSTEM!="input", GOTO="persistent_input_end"  SUBSYSTEM!="input", GOTO="persistent_input_end"
6  KERNEL=="input[0-9]*", GOTO="persistent_input_end"  KERNEL=="input[0-9]*", GOTO="persistent_input_end"
7    
8  # usb devices  # usb devices
9  SUBSYSTEMS=="usb", IMPORT{program}="usb_id -x"  SUBSYSTEMS=="usb", IMPORT{program}="usb_id --export"
10  SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="01", ENV{ID_CLASS}="kbd"  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"  SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="02", ENV{ID_CLASS}="mouse"
12    
# Line 17  DRIVERS=="psmouse", ENV{ID_CLASS}="mouse Line 17  DRIVERS=="psmouse", ENV{ID_CLASS}="mouse
17  ATTRS{name}=="*dvb*|*DVB*|* IR *", ENV{ID_CLASS}="ir"  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"  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"  # fill empty serial number
21    ENV{ID_CLASS}=="?*", ENV{ID_SERIAL}=="", ENV{ID_SERIAL}="noserial"
22    
23  # by-id links  # by-id links
24  KERNEL=="mouse*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_CLASS}"  KERNEL=="mouse*|js*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_CLASS}"
25  KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-$env{ID_CLASS}"  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  # by-path
28  IMPORT{program}="path_id %p"  IMPORT{program}="path_id %p"
29  ENV{ID_PATH}=="?*", KERNEL=="mouse*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}"  ENV{ID_PATH}=="?*", KERNEL=="mouse*|js*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}"
30  ENV{ID_PATH}=="?*", KERNEL=="event*", SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{ID_CLASS}"  ENV{ID_PATH}=="?*", KERNEL=="event*", SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{ID_CLASS}"
31    
32  LABEL="persistent_input_end"  LABEL="persistent_input_end"

Legend:
Removed from v.121  
changed lines
  Added in v.294