From 9e5e60f2574e1bef168b763e55a3bd5e8ae8d11c Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Sat, 13 Dec 2008 22:20:21 +0000 Subject: Store interactive mode after sysinit, #128 thanks to Matthias Schwarzott. --- src/rc/rc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/rc') 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)) -- cgit v1.2.3