]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
Use the last console instead of first console
authorRay Strode <rstrode@redhat.com>
Fri, 5 Sep 2008 18:30:19 +0000 (14:30 -0400)
committerRay Strode <rstrode@redhat.com>
Fri, 5 Sep 2008 18:30:19 +0000 (14:30 -0400)
If the kernel command line specifies more than
one console, then the last console is /dev/console

src/main.c

index e5bceae4d78f467f462a5ef89708f7c863a946ab..a9a5dfe277e23bee15232307ee4f8a34340c0d04 100644 (file)
@@ -488,11 +488,12 @@ check_for_serial_console (state_t *state)
 
   ply_trace ("checking if splash screen should be disabled");
 
-  console_key = strstr (state->kernel_command_line, " console=");
-  if (console_key != NULL)
+  while ((console_key = strstr (state->kernel_command_line, " console=")) != NULL)
     {
       char *end;
       ply_trace ("serial console found!");
+
+      free (state->console);
       state->console = strdup (console_key + strlen (" console="));
 
       end = strpbrk (state->console, " \n\t\v");