projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21ec2c7
)
add late variant of respawn and askconsole
author
John Crispin
<john@phrozen.org>
Tue, 27 Sep 2016 16:09:52 +0000
(18:09 +0200)
committer
John Crispin
<john@phrozen.org>
Wed, 28 Sep 2016 10:06:11 +0000
(12:06 +0200)
Signed-off-by: John Crispin <john@phrozen.org>
inittab.c
patch
|
blob
|
history
state.c
patch
|
blob
|
history
diff --git
a/inittab.c
b/inittab.c
index ae2c431223fb45ebd18860b93914573534dd8c96..011d7a67e644841ed5ed7cb95e4f88c385b6cceb 100644
(file)
--- 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 4ad9e2d8d32156c84f8e5c47c17525bd71745948..3b56bd0b75f81851b12b2fb5cb32d52ef16fb2d7 100644
(file)
--- 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: