]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - src/installer/main.c
installer: Improve check for serial console option
[ipfire-2.x.git] / src / installer / main.c
index 01a9cc61c0a0311589ebda1b0947f0e50ed42c33..6e151fbd55119bf837abea78042be8adbc7e5675 100644 (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?