diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2004-11-12 06:52:55 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 22:25:38 -0700 |
commit | 6818c51d7abeab9914eb7193968b1efa9459a853 (patch) | |
tree | f05af9087f42f67bff00f71778cf3f9dc80323b1 /namedev_parse.c | |
parent | 02fa9ae58920b431bc37182716dd863f1c482651 (diff) |
[PATCH] support SUBSYSTEM as a rule key
This should make it easier to catch e.g all block or net devices with
a single rule.
Diffstat (limited to 'namedev_parse.c')
-rw-r--r-- | namedev_parse.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/namedev_parse.c b/namedev_parse.c index 73828a83b2..cc02d25555 100644 --- a/namedev_parse.c +++ b/namedev_parse.c @@ -258,6 +258,12 @@ static int namedev_parse_rules(const char *filename, void *data) continue; } + if (strcasecmp(temp2, FIELD_SUBSYSTEM) == 0) { + strfieldcpy(dev.subsystem, temp3); + valid = 1; + continue; + } + if (strcasecmp(temp2, FIELD_PROGRAM) == 0) { program_given = 1; strfieldcpy(dev.program, temp3); |