projects
/
ipfire-2.x.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
851fba0
)
installer: Improve check for serial console option
author
Michael Tremer
<michael.tremer@ipfire.org>
Wed, 5 Nov 2014 22:43:01 +0000
(23:43 +0100)
committer
Michael Tremer
<michael.tremer@ipfire.org>
Wed, 5 Nov 2014 22:43:01 +0000
(23:43 +0100)
src/installer/main.c
patch
|
blob
|
blame
|
history
diff --git
a/src/installer/main.c
b/src/installer/main.c
index
01a9cc6
..
6e151fb
100644
(file)
--- 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?