RC_INTERACTIVE now works, #178331.
This commit is contained in:
parent
bbfb7bc409
commit
14c59d4071
@ -3,6 +3,7 @@
|
||||
|
||||
14 May 2007; Roy Marples <uberlord@gentoo.org>:
|
||||
|
||||
RC_INTERACTIVE now works, #178331.
|
||||
Add --startas back to s-s-d, #175980, #175981.
|
||||
Allow time for pidfiles to be created, #178274.
|
||||
Use int instead of char for getopt, #178084 thanks to drizztbsd.
|
||||
|
8
src/rc.c
8
src/rc.c
@ -367,7 +367,12 @@ static char read_key (bool block)
|
||||
|
||||
static bool want_interactive (void)
|
||||
{
|
||||
char c = read_key (false);
|
||||
char c;
|
||||
|
||||
if (! rc_is_env ("RC_INTERACTIVE", "yes"))
|
||||
return (false);
|
||||
|
||||
c = read_key (false);
|
||||
return ((c == 'I' || c == 'i') ? true : false);
|
||||
}
|
||||
|
||||
@ -741,6 +746,7 @@ int main (int argc, char **argv)
|
||||
ecolor (ecolor_good), uts.sysname, ecolor (ecolor_bracket),
|
||||
ecolor (ecolor_normal));
|
||||
|
||||
if (rc_is_env ("RC_INTERACTIVE", "yes"))
|
||||
printf ("Press %sI%s to enter interactive boot mode\n\n",
|
||||
ecolor (ecolor_good), ecolor (ecolor_normal));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user