aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-12-13 22:20:21 +0000
committerRoy Marples <roy@marples.name>2008-12-13 22:20:21 +0000
commit9e5e60f2574e1bef168b763e55a3bd5e8ae8d11c (patch)
tree66e0c0e2b74e98785032313c32afb5440afd4ad5 /src/rc/rc.c
parent6bf0289f332564c65bac9dc37fa81518220926ef (diff)
Store interactive mode after sysinit, #128 thanks to Matthias Schwarzott.
Diffstat (limited to 'src/rc/rc.c')
-rw-r--r--src/rc/rc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c
index 65d3a560..52c1e4d5 100644
--- a/src/rc/rc.c
+++ b/src/rc/rc.c
@@ -691,7 +691,9 @@ interactive_option:
}
/* Store our interactive status for boot */
- if (interactive && strcmp(runlevel, getenv("RC_BOOTLEVEL")) == 0)
+ if (interactive &&
+ (strcmp(runlevel, RC_LEVEL_SYSINIT) == 0 ||
+ strcmp(runlevel, getenv("RC_BOOTLEVEL")) == 0))
mark_interactive();
else {
if (exists(INTERACTIVE))