diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-08-25 03:14:53 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-25 03:14:53 +0200 |
commit | 3006982d93e92019dd6d94a7518684593b43a05e (patch) | |
tree | 753a4e20fc12000e06c3e13273710ccfbe440b5d /src | |
parent | f3d41013e24a81b2c853393593d1d52c156826ec (diff) |
utmp: write out runlevels 5 and 3 preferrably if multiples make sense, and S instead of 1
Diffstat (limited to 'src')
-rw-r--r-- | src/update-utmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/update-utmp.c b/src/update-utmp.c index 5a48bd98dd..3ec0a16c2a 100644 --- a/src/update-utmp.c +++ b/src/update-utmp.c @@ -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", |