X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=udev_rules_parse.c;h=f77f3db915758e24200e2d6201c14413572641cc;hp=4f431decf57acc6694e32beca9434a7e4048d8b6;hb=3b6ed8bb06d18a2855d530dcb9034e9d37114827;hpb=e5e322bc627a07d29a07e08f7c96bd644a3ae057 diff --git a/udev_rules_parse.c b/udev_rules_parse.c index 4f431decf..f77f3db91 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;