From: John Crispin Date: Tue, 27 Sep 2016 16:09:52 +0000 (+0200) Subject: add late variant of respawn and askconsole X-Git-Url: http://git.openwrt.org//?p=project%2Fprocd.git;a=commitdiff_plain;h=72f63807b3644ef7b8ab9025a02d7f509f39ad14 add late variant of respawn and askconsole Signed-off-by: John Crispin --- 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: