diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2005-03-12 22:55:08 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:53:17 -0700 |
commit | 3b6ed8bb06d18a2855d530dcb9034e9d37114827 (patch) | |
tree | a277f9484ba8098e6fa9af293ee0e33e28407ae5 /udev_rules_parse.c | |
parent | e5e322bc627a07d29a07e08f7c96bd644a3ae057 (diff) |
[PATCH] add OPTION="last_rule" to skip any later rule
Diffstat (limited to 'udev_rules_parse.c')
-rw-r--r-- | udev_rules_parse.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/udev_rules_parse.c b/udev_rules_parse.c index 4f431decf5..f77f3db915 100644 --- 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 (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; |