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:
1a7fdca
)
utmp: document that the order of preference for runlevel numbers might be something...
author
Lennart Poettering
<lennart@poettering.net>
Wed, 25 Aug 2010 01:31:59 +0000
(
03:31
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 25 Aug 2010 01:31:59 +0000
(
03:31
+0200)
src/update-utmp.c
patch
|
blob
|
history
diff --git
a/src/update-utmp.c
b/src/update-utmp.c
index 3ec0a16c2a20ba9cd1dd51b356c311b5951d1325..336594fc7a25d25319b54d835aa3458d7cab2549 100644
(file)
--- a/
src/update-utmp.c
+++ b/
src/update-utmp.c
@@
-114,7
+114,10
@@
static int get_current_runlevel(Context *c) {
const char *special;
} table[] = {
/* The first target of this list that is active or has
- * a job scheduled wins */
+ * a job scheduled wins. We prefer runlevels 5 and 3
+ * here over the others, since these are the main
+ * runlevels used on Fedora. It might make sense to
+ * change the order on some distributions. */
{ '5', SPECIAL_RUNLEVEL5_TARGET },
{ '3', SPECIAL_RUNLEVEL3_TARGET },
{ '4', SPECIAL_RUNLEVEL4_TARGET },