chiark / gitweb /
Introduce CONF_DIRS_NULSTR helper to define standard conf dirs
[elogind.git] / src / modules-load / modules-load.c
index 08de5e0ce9e506121b87ad86a72d541ca80c017e..c676fd1c1890cd89903dfebb2b470f7c290659f7 100644 (file)
 
 static char **arg_proc_cmdline_modules = NULL;
 
-static const char conf_file_dirs[] =
-        "/etc/modules-load.d\0"
-        "/run/modules-load.d\0"
-        "/usr/local/lib/modules-load.d\0"
-        "/usr/lib/modules-load.d\0"
-#ifdef HAVE_SPLIT_USR
-        "/lib/modules-load.d\0"
-#endif
-        ;
+static const char conf_file_dirs[] = CONF_DIRS_NULSTR("modules-load");
 
 static void systemd_kmod_log(void *data, int priority, const char *file, int line,
                              const char *fn, const char *format, va_list args) {