[26b1cc1] | 1 | ########################################################################
|
---|
| 2 | #
|
---|
| 3 | # Description : 61-persistent-input.rules
|
---|
| 4 | #
|
---|
| 5 | # Authors : Based on Open Suse Udev Rules
|
---|
| 6 | # kay.sievers@suse.de and hare@suse.de
|
---|
| 7 | #
|
---|
| 8 | # Adapted to : Jim Gifford
|
---|
| 9 | # LFS
|
---|
| 10 | #
|
---|
| 11 | # Version : 00.01
|
---|
| 12 | #
|
---|
| 13 | # Notes :
|
---|
| 14 | #
|
---|
| 15 | ########################################################################
|
---|
| 16 |
|
---|
| 17 | ACTION!="add", GOTO="persistent_input_end"
|
---|
| 18 | SUBSYSTEM!="input", GOTO="persistent_input_end"
|
---|
| 19 | KERNEL=="input[0-9]*", GOTO="persistent_input_end"
|
---|
| 20 |
|
---|
| 21 | # usb devices
|
---|
[dfdebf6] | 22 | BUS=="usb", IMPORT{program}="usb_id -x"
|
---|
[3e15056] | 23 | BUS=="usb", SYSFS{bInterfaceClass}=="03", SYSFS{bInterfaceProtocol}=="01", ENV{ID_CLASS}="kbd"
|
---|
| 24 | BUS=="usb", SYSFS{bInterfaceClass}=="03", SYSFS{bInterfaceProtocol}=="02", ENV{ID_CLASS}="mouse"
|
---|
[26b1cc1] | 25 |
|
---|
| 26 | # by-id links
|
---|
| 27 | KERNEL=="mouse*", ENV{ID_BUS}=="?*", ENV{ID_SERIAL}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_CLASS}"
|
---|
| 28 | KERNEL=="event*", ENV{ID_BUS}=="?*", ENV{ID_SERIAL}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-event-$env{ID_CLASS}"
|
---|
| 29 |
|
---|
| 30 | # by-path
|
---|
[dfdebf6] | 31 | IMPORT{program}="path_id %p"
|
---|
[26b1cc1] | 32 | ENV{ID_PATH}=="?*", KERNEL=="mouse*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}"
|
---|
| 33 | ENV{ID_PATH}=="?*", KERNEL=="event*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}"
|
---|
| 34 |
|
---|
| 35 | LABEL="persistent_input_end"
|
---|