mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-11-23 23:10:57 +07:00
rules: avoid 'device/' accesses
We should never access parents, as the sysfs hierarchy is in no way stable. Use KERNELS== etc. to match on a parent, then access it via $attr{} (which accesses the matching device, not the current device). Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
parent
d8e2e4c3a4
commit
7457718859
@ -13,7 +13,7 @@ DRIVERS=="atkbd", IMPORT{builtin}="hwdb 'keyboard:atkbd:$attr{[dmi/id]modalias}'
|
||||
RUN{builtin}+="keyboard", GOTO="keyboard_end"
|
||||
|
||||
# device matching the input device name and the machine's DMI data
|
||||
IMPORT{builtin}="hwdb 'keyboard:name:$attr{device/name}:$attr{[dmi/id]modalias}'", \
|
||||
KERNELS=="input*", IMPORT{builtin}="hwdb 'keyboard:name:$attr{name}:$attr{[dmi/id]modalias}'", \
|
||||
RUN{builtin}+="keyboard", GOTO="keyboard_end"
|
||||
|
||||
LABEL="keyboard_end"
|
||||
|
Loading…
Reference in New Issue
Block a user