]> git.ipfire.org Git - thirdparty/systemd.git/blame - rules.d/60-evdev.rules
dlfcn-util: add dlsym_many_and_warn() helper
[thirdparty/systemd.git] / rules.d / 60-evdev.rules
CommitLineData
51c0c286
PH
1# do not edit this file, it will be overwritten on update
2
3ACTION=="remove", GOTO="evdev_end"
4KERNEL!="event*", GOTO="evdev_end"
5
6# skip later rules when we find something for this input device
7IMPORT{builtin}="hwdb --subsystem=input --lookup-prefix=evdev:", \
161bc525 8 IMPORT{builtin}="keyboard", GOTO="evdev_end"
51c0c286
PH
9
10# AT keyboard matching by the machine's DMI data
38887d1b 11DRIVERS=="atkbd", \
51c0c286 12 IMPORT{builtin}="hwdb 'evdev:atkbd:$attr{[dmi/id]modalias}'", \
161bc525 13 IMPORT{builtin}="keyboard", GOTO="evdev_end"
51c0c286 14
57bb707d 15# device matching the input device name + properties + the machine's DMI data
161bc525
PH
16KERNELS=="input*", \
17 IMPORT{builtin}="hwdb 'evdev:name:$attr{name}:phys:$attr{phys}:ev:$attr{capabilities/ev}:$attr{[dmi/id]modalias}'", \
18 IMPORT{builtin}="keyboard", GOTO="evdev_end"
57bb707d 19
51c0c286 20# device matching the input device name and the machine's DMI data
161bc525
PH
21KERNELS=="input*", \
22 IMPORT{builtin}="hwdb 'evdev:name:$attr{name}:$attr{[dmi/id]modalias}'", \
23 IMPORT{builtin}="keyboard", GOTO="evdev_end"
51c0c286
PH
24
25LABEL="evdev_end"