diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2016-09-18 14:08:20 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2016-09-18 14:08:20 +0200 |
commit | aa0e1081070b1062c696d31ed3c68e9511733ad1 (patch) | |
tree | b30826dc7c9bd5ae2b807bda98f480890b25074d /src/mm-error-helpers.h | |
parent | 546d33db6c8faa9a6ab48ae3e00a0c8339a576a8 (diff) |
udev: fix SUBSYSTEMS and ATTRS{idVendor} checks
Rules with a single condition where a parent property is checked with != don't
work properly. E.g.:
SUBSYSTEMS!="usb", GOTO="end"
or:
ATTRS{idVendor}!="abcd", GOTO="end"
Instead, we can mix both those previous parent rules and match them:
SUBSYSTEMS=="usb",ATTRS{idVendor}=="abcd", GOTO="next"
GOTO="end"
LABEL="next"
# Apply rules here
LABEL="end"
In this case both SUBSYSTEMS and ATTRS conditions apply to the parent usb_device
(idVendor attribute is only available in the usb_device), so they apply to all
ports of the same device.
Diffstat (limited to 'src/mm-error-helpers.h')
0 files changed, 0 insertions, 0 deletions