Magellan Linux

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

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

trunk/udev/udev-persistent-input.rules.magellan revision 1016 by niro, Tue Apr 6 23:46:22 2010 UTC tags/udev-171-r1/udev-persistent-input.rules.magellan revision 1329 by niro, Fri May 27 13:54:05 2011 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.9 2010-04-06 23:46:22 niro Exp $  # $Header: /root/magellan-cvs/src/udev/udev-persistent-input.rules.magellan,v 1.10 2010-08-18 02:24:12 niro Exp $
3  #  #
4  # There are a number of modifiers that are allowed to be used in some  # There are a number of modifiers that are allowed to be used in some
5  # of the different fields. They provide the following subsitutions:  # of the different fields. They provide the following subsitutions:
# Line 18  Line 18 
18  # file that can be run before this one.  # file that can be run before this one.
19  #  #
20    
21  ACTION!="add|change", GOTO="persistent_input_end"  ACTION=="remove", GOTO="persistent_input_end"
22  SUBSYSTEM!="input", GOTO="persistent_input_end"  SUBSYSTEM!="input", GOTO="persistent_input_end"
23  KERNEL=="input[0-9]*", GOTO="persistent_input_end"  KERNEL=="input[0-9]*", GOTO="persistent_input_end"
24    
# Line 39  ENV{.INPUT_CLASS}=="?*", ENV{ID_SERIAL}= Line 39  ENV{.INPUT_CLASS}=="?*", ENV{ID_SERIAL}=
39    
40  # by-id links  # by-id links
41  KERNEL=="mouse*|js*", ENV{ID_BUS}=="?*", ENV{.INPUT_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{.INPUT_CLASS}"  KERNEL=="mouse*|js*", ENV{ID_BUS}=="?*", ENV{.INPUT_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{.INPUT_CLASS}"
42    KERNEL=="mouse*|js*", ENV{ID_BUS}=="?*", ENV{.INPUT_CLASS}=="?*", ATTRS{bInterfaceNumber}=="?*", ATTRS{bInterfaceNumber}!="00", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-if$attr{bInterfaceNumber}-$env{.INPUT_CLASS}"
43  KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{.INPUT_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-$env{.INPUT_CLASS}"  KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{.INPUT_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-$env{.INPUT_CLASS}"
44    KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{.INPUT_CLASS}=="?*", ATTRS{bInterfaceNumber}=="?*", ATTRS{bInterfaceNumber}!="00", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-if$attr{bInterfaceNumber}-event-$env{.INPUT_CLASS}"
45  # allow empty class for USB devices, by appending the interface number  # allow empty class for USB devices, by appending the interface number
46  SUBSYSTEMS=="usb", ENV{ID_BUS}=="?*", KERNEL=="event*", ENV{.INPUT_CLASS}=="", ATTRS{bInterfaceNumber}=="?*", \  SUBSYSTEMS=="usb", ENV{ID_BUS}=="?*", KERNEL=="event*", ENV{.INPUT_CLASS}=="", ATTRS{bInterfaceNumber}=="?*", \
47    SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-if$attr{bInterfaceNumber}"    SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-if$attr{bInterfaceNumber}"
48    
49  # by-path  # by-path
50  SUBSYSTEMS=="usb|platform", IMPORT{program}="path_id %p"  SUBSYSTEMS=="pci|usb|platform", IMPORT{program}="path_id %p"
51  ENV{ID_PATH}=="?*", KERNEL=="mouse*|js*", ENV{.INPUT_CLASS}=="?*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{.INPUT_CLASS}"  ENV{ID_PATH}=="?*", KERNEL=="mouse*|js*", ENV{.INPUT_CLASS}=="?*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{.INPUT_CLASS}"
52  ENV{ID_PATH}=="?*", KERNEL=="event*", ENV{.INPUT_CLASS}=="?*", SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{.INPUT_CLASS}"  ENV{ID_PATH}=="?*", KERNEL=="event*", ENV{.INPUT_CLASS}=="?*", SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{.INPUT_CLASS}"
53  # allow empty class for platform and usb devices; platform supports only a single interface that way  # allow empty class for platform and usb devices; platform supports only a single interface that way

Legend:
Removed from v.1016  
changed lines
  Added in v.1329