From: Ray Strode Date: Fri, 5 Sep 2008 18:30:19 +0000 (-0400) Subject: Use the last console instead of first console X-Git-Tag: 0.6.0~166 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a07d23afd40a2e3eafa9fc746e7b7fefacfbcdc2;p=thirdparty%2Fplymouth.git Use the last console instead of first console If the kernel command line specifies more than one console, then the last console is /dev/console --- diff --git a/src/main.c b/src/main.c index e5bceae4..a9a5dfe2 100644 --- a/src/main.c +++ b/src/main.c @@ -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");