installer: Improve check for serial console option

This commit is contained in:
Michael Tremer
2014-11-05 23:43:01 +01:00
parent 851fba0e8d
commit bb75bc3b14

View File

@@ -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?