Use finit API to get runlevel instead of utmp

utmp is not available with musl libc
This commit is contained in:
Patrick Stewart committed 2016-04-13 22:07:39 +01:00
1 parent f7f222c924
commit 1177c734ce
5 files changed
+42 -18

No files matched your search

+5
View File
@@ -316,6 +316,11 @@ static void cb(uev_t *w, void *UNUSED(arg), int UNUSED(events))
result = do_handle_emit(rq.data, sizeof(rq.data));
break;
case INIT_CMD_GET_RUNLEVEL:
rq.runlevel = runlevel;
result = 0;
break;
case INIT_CMD_ACK:
_d("Client failed reading ACK.");
goto leave;