chiark / gitweb /
rules: storage - don't apply rules to remove events
[elogind.git] / rules / 60-keyboard.rules
1 # do not edit this file, it will be overwritten on update
2
3 ACTION=="remove", GOTO="keyboard_end"
4 KERNEL!="event*", GOTO="keyboard_end"
5 ENV{ID_INPUT_KEY}=="", GOTO="keyboard_end"
6
7 # skip later rules when we find something for this input device
8 IMPORT{builtin}="hwdb --subsystem=input --lookup-prefix=keyboard:", \
9   RUN{builtin}+="keyboard", GOTO="keyboard_end"
10
11 # AT keyboard matching by the machine's DMI data
12 DRIVERS=="atkbd", IMPORT{builtin}="hwdb 'keyboard:atkbd:$attr{[dmi/id]modalias}'", \
13   RUN{builtin}+="keyboard", GOTO="keyboard_end"
14
15 # device matching the input device name and the machine's DMI data
16 KERNELS=="input*", IMPORT{builtin}="hwdb 'keyboard:name:$attr{name}:$attr{[dmi/id]modalias}'", \
17   RUN{builtin}+="keyboard", GOTO="keyboard_end"
18
19 LABEL="keyboard_end"