]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
main: special case console=tty
authorRay Strode <rstrode@redhat.com>
Wed, 25 May 2011 18:28:42 +0000 (14:28 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 25 May 2011 18:28:42 +0000 (14:28 -0400)
Some people use console=tty in the same way they'd expect
console=tty0 to work.

This commit makes them behave the same way.

src/main.c

index 8ec67c7f032837585505227266399b44141d313c..6c237308942fa873a437c9160cc596278c36517f 100644 (file)
@@ -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);