Add HOOK_BANNER for plugins to override the default Finit banner()

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-07-08 00:07:21 +02:00
parent 878885e2b2
commit 115b5f1ca7
2 changed files with 7 additions and 1 deletions
+5
View File
@@ -70,6 +70,11 @@ static void banner(void)
char *buf = INIT_HEADING;
char separator[SCREEN_WIDTH];
if (plugin_exists(HOOK_BANNER)) {
plugin_run_hooks(HOOK_BANNER);
return;
}
if (log_is_silent())
return;
+2 -1
View File
@@ -47,7 +47,8 @@
*/
typedef enum {
/* Bootstrap hooks */
HOOK_ROOTFS_UP = 0,
HOOK_BANNER = 0,
HOOK_ROOTFS_UP,
HOOK_MOUNT_ERROR,
HOOK_BASEFS_UP,
HOOK_NETWORK_UP,