/[baselayout]/trunk/src/rc.c
Gentoo

Diff of /trunk/src/rc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 2684 Revision 2700
365 return (c); 365 return (c);
366} 366}
367 367
368static bool want_interactive (void) 368static bool want_interactive (void)
369{ 369{
370 char c;
371
372 if (! rc_is_env ("RC_INTERACTIVE", "yes"))
373 return (false);
374
370 char c = read_key (false); 375 c = read_key (false);
371 return ((c == 'I' || c == 'i') ? true : false); 376 return ((c == 'I' || c == 'i') ? true : false);
372} 377}
373 378
374static void mark_interactive (void) 379static void mark_interactive (void)
375{ 380{
739 "\n Copyright 1999-2007 Gentoo Foundation; " 744 "\n Copyright 1999-2007 Gentoo Foundation; "
740 "Distributed under the GPLv2\n\n", 745 "Distributed under the GPLv2\n\n",
741 ecolor (ecolor_good), uts.sysname, ecolor (ecolor_bracket), 746 ecolor (ecolor_good), uts.sysname, ecolor (ecolor_bracket),
742 ecolor (ecolor_normal)); 747 ecolor (ecolor_normal));
743 748
749 if (rc_is_env ("RC_INTERACTIVE", "yes"))
744 printf ("Press %sI%s to enter interactive boot mode\n\n", 750 printf ("Press %sI%s to enter interactive boot mode\n\n",
745 ecolor (ecolor_good), ecolor (ecolor_normal)); 751 ecolor (ecolor_good), ecolor (ecolor_normal));
746 752
747 setenv ("RC_SOFTLEVEL", newlevel, 1); 753 setenv ("RC_SOFTLEVEL", newlevel, 1);
748 rc_plugin_run (rc_hook_runlevel_start_in, newlevel); 754 rc_plugin_run (rc_hook_runlevel_start_in, newlevel);
749 755
750 if ((pid = vfork ()) == -1) 756 if ((pid = vfork ()) == -1)

Legend:
Removed from v.2684  
changed lines
  Added in v.2700

  ViewVC Help
Powered by ViewVC 1.1.20