diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-05-20 15:02:17 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-05-20 15:02:17 +0200 |
commit | ea97dc3792642fa8187a339cc258f9a5a7df4523 (patch) | |
tree | b36a9a7d0f35e929fe953c59805d566461c66339 /udev_rules_parse.c | |
parent | bc44071db2ea1f20d955e5f1310c8038e78abd73 (diff) |
rename WAIT_FOR_SYSFS to WAIT_FOR and accept an absolute path
This allows us to watch any file to appear, not only sysfs
attributes. Files without a leading slash will be device sysfs
attributes. The key WAIT_FOR_SYSFS still works for backwards
compat, but is removed from the man page.
Diffstat (limited to 'udev_rules_parse.c')
-rw-r--r-- | udev_rules_parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/udev_rules_parse.c b/udev_rules_parse.c index 5119b7e84f..bdaf55bd48 100644 --- a/udev_rules_parse.c +++ b/udev_rules_parse.c @@ -495,8 +495,8 @@ static int add_to_rules(struct udev_rules *rules, char *line, const char *filena continue; } - if (strcasecmp(key, "WAIT_FOR_SYSFS") == 0) { - add_rule_key(rule, &rule->wait_for_sysfs, operation, value); + if (strcasecmp(key, "WAIT_FOR") == 0 || strcasecmp(key, "WAIT_FOR_SYSFS") == 0) { + add_rule_key(rule, &rule->wait_for, operation, value); valid = 1; continue; } @@ -629,7 +629,7 @@ static int add_to_rules(struct udev_rules *rules, char *line, const char *filena err("unknown key '%s' in %s:%u\n", key, filename, lineno); } - if (physdev && rule->wait_for_sysfs.operation == KEY_OP_UNSET) + if (physdev && rule->wait_for.operation == KEY_OP_UNSET) err("PHYSDEV* values are deprecated and will be removed from a future kernel, \n" "please fix it in %s:%u", filename, lineno); |