mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
installer: Improve check for serial console option
This commit is contained in:
@@ -289,7 +289,7 @@ static void parse_command_line(struct config* c) {
|
|||||||
char* key = strsep(&val, "=");
|
char* key = strsep(&val, "=");
|
||||||
|
|
||||||
// serial console
|
// serial console
|
||||||
if (strcmp(token, "console=ttyS0") == 0)
|
if ((strcmp(key, "console") == 0) && (strncmp(val, "ttyS", 4) == 0))
|
||||||
c->serial_console = 1;
|
c->serial_console = 1;
|
||||||
|
|
||||||
// enable networking?
|
// enable networking?
|
||||||
|
|||||||
Reference in New Issue
Block a user