chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] add OPTION="last_rule" to skip any later rule
[elogind.git]
/
udev_rules_parse.c
diff --git
a/udev_rules_parse.c
b/udev_rules_parse.c
index 4f431decf57acc6694e32beca9434a7e4048d8b6..f77f3db915758e24200e2d6201c14413572641cc 100644
(file)
--- a/
udev_rules_parse.c
+++ b/
udev_rules_parse.c
@@
-283,6
+283,10
@@
static int rules_parse(struct udevice *udev, const char *filename)
}
if (strcasecmp(temp2, FIELD_OPTIONS) == 0) {
}
if (strcasecmp(temp2, FIELD_OPTIONS) == 0) {
+ if (strstr(temp3, OPTION_LAST_RULE) != NULL) {
+ dbg("last rule to be applied");
+ rule.last_rule = 1;
+ }
if (strstr(temp3, OPTION_IGNORE_DEVICE) != NULL) {
dbg("device should be ignored");
rule.ignore_device = 1;
if (strstr(temp3, OPTION_IGNORE_DEVICE) != NULL) {
dbg("device should be ignored");
rule.ignore_device = 1;