chiark / gitweb /
[PATCH] add OPTION="last_rule" to skip any later rule
[elogind.git] / udev_rules.c
index cbdf7de..16f23cc 100644 (file)
@@ -759,6 +759,12 @@ int udev_rules_get_name(struct udevice *udev, struct sysfs_class_device *class_d
 
                                break;
                        }
+
+                       if (rule->last_rule) {
+                               dbg("last rule to be applied");
+                               break;
+                       }
+
                }
        }