1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-25 23:21:33 +03:00

allow to overwrite the configured udev_root by exporting UDEV_ROOT

This commit is contained in:
Marco d'Itri 2005-11-25 18:56:06 +01:00 committed by Kay Sievers
parent a8a614a701
commit 2796c47b5c

View File

@ -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);