From: Michael Tremer Date: Wed, 5 Nov 2014 22:43:01 +0000 (+0100) Subject: installer: Improve check for serial console option X-Git-Tag: v2.17-core87~103^2~21 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=bb75bc3b140749a736040d767ff89d25177ae330;ds=sidebyside installer: Improve check for serial console option --- diff --git a/src/installer/main.c b/src/installer/main.c index 01a9cc61c0..6e151fbd55 100644 --- a/src/installer/main.c +++ b/src/installer/main.c @@ -289,7 +289,7 @@ static void parse_command_line(struct config* c) { char* key = strsep(&val, "="); // serial console - if (strcmp(token, "console=ttyS0") == 0) + if ((strcmp(key, "console") == 0) && (strncmp(val, "ttyS", 4) == 0)) c->serial_console = 1; // enable networking?