summaryrefslogtreecommitdiff
path: root/namedev_parse.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-11-13 05:21:12 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 22:26:25 -0700
commit2092fbcdebf5313f29b43bdaa57a22baf0c0269f (patch)
tree81a534c099ab35af05f0faaad17ab76635be9717 /namedev_parse.c
parent6818c51d7abeab9914eb7193968b1efa9459a853 (diff)
[PATCH] support DRIVER as a rule key
Match with a rule against a device with a specific kernel driver.
Diffstat (limited to 'namedev_parse.c')
-rw-r--r--namedev_parse.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/namedev_parse.c b/namedev_parse.c
index cc02d25555..ccacceceb4 100644
--- a/namedev_parse.c
+++ b/namedev_parse.c
@@ -264,6 +264,12 @@ static int namedev_parse_rules(const char *filename, void *data)
continue;
}
+ if (strcasecmp(temp2, FIELD_DRIVER) == 0) {
+ strfieldcpy(dev.driver, temp3);
+ valid = 1;
+ continue;
+ }
+
if (strcasecmp(temp2, FIELD_PROGRAM) == 0) {
program_given = 1;
strfieldcpy(dev.program, temp3);