From 3006982d93e92019dd6d94a7518684593b43a05e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 25 Aug 2010 03:14:53 +0200 Subject: [PATCH] utmp: write out runlevels 5 and 3 preferrably if multiples make sense, and S instead of 1 --- src/update-utmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/update-utmp.c b/src/update-utmp.c index 5a48bd98..3ec0a16c 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", -- 2.39.5