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:
parent
f3d41013e2
commit
3006982d93
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user