chiark / gitweb /
update SUSE rules
[elogind.git] / etc / udev / suse / 60-persistent-input.rules
1 ACTION!="add", GOTO="persistent_input_end"
2 SUBSYSTEM!="input", GOTO="persistent_input_end"
3 KERNEL=="input[0-9]*", GOTO="persistent_input_end"
4
5 # usb devices
6 BUS=="usb", IMPORT{program}="/sbin/usb_id -x"
7 BUS=="usb", SYSFS{bInterfaceClass}=="03", SYSFS{bInterfaceProtocol}=="01", ENV{ID_CLASS}="kbd"
8 BUS=="usb", SYSFS{bInterfaceClass}=="03", SYSFS{bInterfaceProtocol}=="02", ENV{ID_CLASS}="mouse"
9
10 # by-id links
11 KERNEL=="mouse*", ENV{ID_BUS}=="?*", ENV{ID_SERIAL}=="?*", ENV{ID_CLASS}=="?*", SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_CLASS}"
12 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}"
13
14 # by-path
15 IMPORT{program}="/sbin/path_id %p"
16 ENV{ID_PATH}=="?*", KERNEL=="mouse*", SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}"
17 ENV{ID_PATH}=="?*", KERNEL=="event*", SYMLINK+="input/by-path/$env{ID_PATH}-event-$env{ID_CLASS}"
18
19 LABEL="persistent_input_end"
20