1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-19 21:57:27 +03:00

utmp: write out runlevels 5 and 3 preferrably if multiples make sense, and S instead of 1

This commit is contained in:
Lennart Poettering 2010-08-25 03:14:53 +02:00
parent f3d41013e2
commit 3006982d93

View File

@ -116,10 +116,10 @@ static int get_current_runlevel(Context *c) {
/* The first target of this list that is active or has
* a job scheduled wins */
{ '5', SPECIAL_RUNLEVEL5_TARGET },
{ '4', SPECIAL_RUNLEVEL4_TARGET },
{ '3', SPECIAL_RUNLEVEL3_TARGET },
{ '4', SPECIAL_RUNLEVEL4_TARGET },
{ '2', SPECIAL_RUNLEVEL2_TARGET },
{ '1', SPECIAL_RESCUE_TARGET },
{ 'S', SPECIAL_RESCUE_TARGET },
};
const char
*interface = "org.freedesktop.systemd1.Unit",