summaryrefslogtreecommitdiff
path: root/udev_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev_config.c')
-rw-r--r--udev_config.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/udev_config.c b/udev_config.c
index 7037a17081..c1af7c12ca 100644
--- a/udev_config.c
+++ b/udev_config.c
@@ -192,6 +192,12 @@ void udev_init_config(void)
parse_config_file();
+ env = getenv("UDEV_ROOT");
+ if (env) {
+ strlcpy(udev_root, env, sizeof(udev_root));
+ remove_trailing_chars(udev_root, '/');
+ }
+
env = getenv("UDEV_LOG");
if (env)
udev_log_priority = log_priority(env);