diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-06-20 00:29:38 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-06-20 00:29:38 +0200 |
commit | bf5d2964730e63316861e310d1f24c165b11e961 (patch) | |
tree | 84354496e6fd65402068bc67b964f0752b2189ab /udev_rules_parse.c | |
parent | 57663b364beda200ec189c889e7d9c9fede37c9a (diff) |
prepare for module loading rules and add MODALIAS key
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_rules_parse.c')
-rw-r--r-- | udev_rules_parse.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/udev_rules_parse.c b/udev_rules_parse.c index 57c797dd31..89925a35e4 100644 --- a/udev_rules_parse.c +++ b/udev_rules_parse.c @@ -269,6 +269,13 @@ static int rules_parse(const char *filename) continue; } + if (strcasecmp(key, KEY_DEVPATH) == 0) { + strlcpy(rule.devpath, value, sizeof(rule.devpath)); + rule.devpath_operation = operation; + valid = 1; + continue; + } + if (strcasecmp(key, KEY_BUS) == 0) { strlcpy(rule.bus, value, sizeof(rule.bus)); rule.bus_operation = operation; @@ -325,6 +332,13 @@ static int rules_parse(const char *filename) continue; } + if (strcasecmp(key, KEY_MODALIAS) == 0) { + strlcpy(rule.modalias, value, sizeof(rule.modalias)); + rule.modalias_operation = operation; + valid = 1; + continue; + } + if (strcasecmp(key, KEY_DRIVER) == 0) { strlcpy(rule.driver, value, sizeof(rule.driver)); rule.driver_operation = operation; |