- temp = getenv("UDEV_CONFIG_FILE");
- if (temp != NULL)
- strfieldcpy(udev_config_filename, temp);
+ strcpy(udev_root, UDEV_ROOT);
+ strcpy(udev_config_filename, UDEV_CONFIG_FILE);
+ strcpy(udev_rules_filename, UDEV_RULES_FILE);
+ udev_log_priority = LOG_ERR;
+ udev_run = 1;
+
+ /* disable RUN key execution */
+ env = getenv("UDEV_RUN");
+ if (env && !string_is_true(env))
+ udev_run = 0;
+
+ env = getenv("UDEV_CONFIG_FILE");
+ if (env) {
+ strlcpy(udev_config_filename, env, sizeof(udev_config_filename));
+ remove_trailing_chars(udev_config_filename, '/');