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.5 2008-12-22 20:31:37 niro Exp $ |
# $Header: /root/magellan-cvs/src/udev/udev-persistent-input.rules.magellan,v 1.6 2009-04-24 14:19:13 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: |
23 |
KERNEL=="input[0-9]*", GOTO="persistent_input_end" |
KERNEL=="input[0-9]*", GOTO="persistent_input_end" |
24 |
|
|
25 |
# usb devices |
# usb devices |
26 |
SUBSYSTEMS=="usb", IMPORT{program}="usb_id --export" |
SUBSYSTEMS=="usb", IMPORT{program}="usb_id --export %p" |
27 |
SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="01", ENV{ID_CLASS}="kbd" |
SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="01", ENV{ID_CLASS}="kbd" |
28 |
SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="02", ENV{ID_CLASS}="mouse" |
SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="03", ATTRS{bInterfaceProtocol}=="02", ENV{ID_CLASS}="mouse" |
29 |
|
|
44 |
|
|
45 |
# by-path |
# by-path |
46 |
IMPORT{program}="path_id %p" |
IMPORT{program}="path_id %p" |
47 |
ENV{ID_PATH}=="?*", KERNEL=="mouse*|js*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}" |
ENV{ID_PATH}=="?*", KERNEL=="mouse*|js*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}" |
48 |
ENV{ID_PATH}=="?*", KERNEL=="event*", SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{ID_CLASS}" |
ENV{ID_PATH}=="?*", KERNEL=="event*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{ID_CLASS}" |
49 |
|
|
50 |
LABEL="persistent_input_end" |
LABEL="persistent_input_end" |
51 |
|
|