chiark / gitweb /
rules: avoid 'device/' accesses
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 20 Mar 2015 11:28:12 +0000 (12:28 +0100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Fri, 20 Mar 2015 11:28:12 +0000 (12:28 +0100)
commit9a2e1571c0d535ee784cd0401f1086d790c7650b
tree39332ea4ee897587ee40c7780f9425d17dfeccd2
parent568d800b784223eb37a5cd75e66dc03510fae638
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).
rules/60-keyboard.rules