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: |
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 |
|
|
45 |
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}" |
46 |
|
|
47 |
# by-path |
# by-path |
48 |
SUBSYSTEMS=="usb|platform", IMPORT{program}="path_id %p" |
SUBSYSTEMS=="pci|usb|platform", IMPORT{program}="path_id %p" |
49 |
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}" |
50 |
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}" |
51 |
# 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 |