aboutsummaryrefslogtreecommitdiff
path: root/src/librc
diff options
context:
space:
mode:
Diffstat (limited to 'src/librc')
-rw-r--r--src/librc/librc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c
index f45cc859..9084238b 100644
--- a/src/librc/librc.c
+++ b/src/librc/librc.c
@@ -491,7 +491,7 @@ rc_runlevel_get(void)
if (!runlevel || !*runlevel) {
free(runlevel);
- runlevel = xstrdup(RC_LEVEL_SYSINIT);
+ runlevel = xstrdup(rc_is_user() ? "none" : RC_LEVEL_SYSINIT);
}
return runlevel;