From: Ray Strode Date: Wed, 25 May 2011 18:28:42 +0000 (-0400) Subject: main: special case console=tty X-Git-Tag: 0.8.4~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d09ad7d51e803e56b52c4e84dd558a7ac4d2e39;p=thirdparty%2Fplymouth.git main: special case console=tty Some people use console=tty in the same way they'd expect console=tty0 to work. This commit makes them behave the same way. --- diff --git a/src/main.c b/src/main.c index 8ec67c7f..6c237308 100644 --- a/src/main.c +++ b/src/main.c @@ -1838,7 +1838,8 @@ check_for_consoles (state_t *state, if (end != NULL) *end = '\0'; - if (strcmp (console, "tty0") == 0 || strcmp (console, "/dev/tty0") == 0) + if (strcmp (console, "tty0") == 0 || strcmp (console, "/dev/tty0") == 0 || + strcmp (console, "tty") == 0 || strcmp (console, "tty") == 0) { free (console); console = strdup (default_tty);