mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
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:
+4
-6
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user