initctl: Support printing previous runlevel

This patch adds support for "PREVLEVEL RUNLEVEL" output to the initctl
runlevel command.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-12-17 10:54:06 +01:00
1 parent cae61ad6df
commit f06a0fcb71
2 files changed
+29 -9

No files matched your search

+2 -1
View File
@@ -267,7 +267,8 @@ static void api_cb(uev_t *w, void *arg, int events)
case INIT_CMD_GET_RUNLEVEL:
_d("get runlevel");
rq.runlevel = runlevel;
rq.runlevel = runlevel;
rq.sleeptime = prevlevel;
break;
case INIT_CMD_ACK: