Ensure that plugins are loaded before the first hook point

We want plugins to be able to register themselves at the banner hook
point, but that requires that we have actually loaded them before
then.
This commit is contained in:
Tobias Waldekranz
2020-10-20 09:48:33 +02:00
parent 100cea5d9f
commit bdceeb83d5
+4 -6
View File
@@ -378,6 +378,10 @@ int main(int argc, char *argv[])
*/
emergency_shell();
/* Load plugins early, the first hook is in banner(), so we
* need plugins loaded before calling it. */
plugin_init(&loop);
/*
* Hello world.
*/
@@ -388,12 +392,6 @@ int main(int argc, char *argv[])
*/
sig_init();
/*
* Load plugins early, finit.conf may contain references to
* features implemented by plugins.
*/
plugin_init(&loop);
/*
* Initialize default control groups, if available
*/