From 2796c47b5c88f2775247fd0cddc1385d6bbb10bd Mon Sep 17 00:00:00 2001 From: Marco d'Itri Date: Fri, 25 Nov 2005 18:56:06 +0100 Subject: allow to overwrite the configured udev_root by exporting UDEV_ROOT --- udev_config.c | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- cgit v1.2.3-54-g00ecf