patch-2.4.20 linux-2.4.20/arch/ppc/boot/common/misc-simple.c
Next file: linux-2.4.20/arch/ppc/boot/common/relocate.S
Previous file: linux-2.4.20/arch/ppc/boot/common/crt0.S
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Thu Nov 28 15:53:11 2002
- Orig file:
linux-2.4.19/arch/ppc/boot/common/misc-simple.c
- Orig date:
Fri Aug 2 17:39:43 2002
diff -urN linux-2.4.19/arch/ppc/boot/common/misc-simple.c linux-2.4.20/arch/ppc/boot/common/misc-simple.c
@@ -148,9 +148,12 @@
memcpy (cmd_line, cmd_preset, sizeof(cmd_preset));
while ( *cp ) putc(*cp++);
-#ifndef CONFIG_GEMINI
- /* Val Henson has requested that Gemini doesn't wait for the
- * user to edit the cmdline or not. */
+#if (defined(CONFIG_SERIAL_CONSOLE) || defined(CONFIG_VGA_CONSOLE)) \
+ && !defined(CONFIG_GEMINI)
+ /*
+ * If they have a console, allow them to edit the command line.
+ * Otherwise, don't bother wasting the five seconds.
+ */
while (timer++ < 5*1000) {
if (tstc()) {
while ((ch = getc()) != '\n' && ch != '\r') {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)