mirror of
https://github.com/troglobit/finit.git
synced 2026-10-11 17:02:42 +07:00
Load plugins much earlier, for future banner plugin
This patch moves the plugin loader much earlier, making it possible to provide a custom banner/logo in a plugin. To facilitate this move we need to also move banner later and parsing of the kernel cmdline earlier, right after mouting /proc. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+1
-3
@@ -322,8 +322,6 @@ static int load_plugins(char *path)
|
||||
DIR *dp;
|
||||
struct dirent *entry;
|
||||
|
||||
print_desc("Loading plugins", NULL);
|
||||
|
||||
dp = opendir(path);
|
||||
if (!dp) {
|
||||
_e("Failed, cannot open plugin directory %s: %s", path, strerror(errno));
|
||||
@@ -358,7 +356,7 @@ int plugin_init(uev_ctx_t *ctx, char *path)
|
||||
if (!load_plugins(path))
|
||||
fail = init_plugins(ctx);
|
||||
|
||||
return print_result(fail);
|
||||
return fail;
|
||||
}
|
||||
|
||||
void plugin_exit(void)
|
||||
|
||||
Reference in New Issue
Block a user