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
ae2c431
..
011d7a6
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
4ad9e2d
..
3b56bd0
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: