chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3d4101
)
utmp: write out runlevels 5 and 3 preferrably if multiples make sense, and S instead...
author
Lennart Poettering
<lennart@poettering.net>
Wed, 25 Aug 2010 01:14:53 +0000
(
03:14
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 25 Aug 2010 01:14:53 +0000
(
03:14
+0200)
src/update-utmp.c
patch
|
blob
|
history
diff --git
a/src/update-utmp.c
b/src/update-utmp.c
index 5a48bd98dd9cf682f829933513d09a00b28fa4d4..3ec0a16c2a20ba9cd1dd51b356c311b5951d1325 100644
(file)
--- 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",