diff options
author | Marco d'Itri <md@Linux.IT> | 2005-11-25 18:56:06 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-11-25 18:56:06 +0100 |
commit | 2796c47b5c88f2775247fd0cddc1385d6bbb10bd (patch) | |
tree | 6426f3df9611f584476191d9e5ba0d3574eaab80 | |
parent | a8a614a7018918e987585c2d07189024c640cb3a (diff) |
allow to overwrite the configured udev_root by exporting UDEV_ROOT
-rw-r--r-- | udev_config.c | 6 |
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); |