summaryrefslogtreecommitdiff
path: root/udev_rules_parse.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-07-07 20:05:51 +0200
committerKay Sievers <kay.sievers@suse.de>2005-07-07 20:05:51 +0200
commitb2fe4b9ac96c254efa68d747bfb9843c438919a0 (patch)
tree4e28acc09e618548c2b660d3bd45204aae3201d9 /udev_rules_parse.c
parent5f79d72c436e9433080feff93be965ec79b17ec2 (diff)
add WAIT_FOR_SYSFS key to loop until a file in sysfs arrives
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_rules_parse.c')
-rw-r--r--udev_rules_parse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/udev_rules_parse.c b/udev_rules_parse.c
index c36fc8224c..2add91fa9f 100644
--- a/udev_rules_parse.c
+++ b/udev_rules_parse.c
@@ -284,6 +284,12 @@ static int add_to_rules(struct udev_rules *rules, char *line)
continue;
}
+ if (strcasecmp(key, "WAIT_FOR_SYSFS") == 0) {
+ add_rule_key(rule, &rule->wait_for_sysfs, operation, value);
+ valid = 1;
+ continue;
+ }
+
if (strncasecmp(key, "ENV", sizeof("ENV")-1) == 0) {
attr = get_key_attribute(key + sizeof("ENV")-1);
if (attr == NULL) {