From 72f63807b3644ef7b8ab9025a02d7f509f39ad14 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Tue, 27 Sep 2016 18:09:52 +0200 Subject: [PATCH] add late variant of respawn and askconsole Signed-off-by: John Crispin --- inittab.c | 8 ++++++++ state.c | 2 ++ 2 files changed, 10 insertions(+) diff --git a/inittab.c b/inittab.c index ae2c431..011d7a6 100644 --- a/inittab.c +++ b/inittab.c @@ -228,6 +228,14 @@ static struct init_handler handlers[] = { .name = "respawn", .cb = rcrespawn, .multi = 1, + }, { + .name = "askconsolelate", + .cb = askconsole, + .multi = 1, + }, { + .name = "respawnlate", + .cb = rcrespawn, + .multi = 1, } }; diff --git a/state.c b/state.c index 4ad9e2d..3b56bd0 100644 --- a/state.c +++ b/state.c @@ -128,6 +128,8 @@ static void state_enter(void) case STATE_RUNNING: LOG("- init complete -\n"); + procd_inittab_run("respawnlate"); + procd_inittab_run("askconsolelate"); break; case STATE_SHUTDOWN: -- 2.25.1