chiark / gitweb /
IMPORT=<file> allow to import a shell-var style config-file
[elogind.git] / udev_rules_parse.c
index 36bf97177db4172be9f648f18d1c36195a0a6d5e..121236820b8d0da1bc22d7e5abd5821c08e36999 100644 (file)
@@ -375,6 +375,13 @@ static int rules_parse(const char *filename)
                                continue;
                        }
 
+                       if (strcasecmp(key, KEY_IMPORT) == 0) {
+                               strlcpy(rule.import, value, sizeof(rule.import));
+                               rule.import_operation = operation;
+                               valid = 1;
+                               continue;
+                       }
+
                        if (strcasecmp(key, KEY_DRIVER) == 0) {
                                strlcpy(rule.driver, value, sizeof(rule.driver));
                                rule.driver_operation = operation;