]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
If console=tty0 is asked for use tty1
authorRay Strode <rstrode@redhat.com>
Wed, 8 Oct 2008 17:35:03 +0000 (13:35 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 8 Oct 2008 17:55:39 +0000 (13:55 -0400)
tty0 means "use current tty", which is tty1
for us.

src/main.c

index 056d57a4fdc3bab6998881f4204739e0a01e8dc9..d18b679569d358259711e7a02dd70d343fb8da82 100644 (file)
@@ -633,6 +633,12 @@ check_for_consoles (state_t *state)
           remaining_command_line += end - state->console;
         }
 
+      if (strcmp (state->console, "tty0") == 0 || strcmp (state->console, "/dev/tty0") == 0)
+        {
+          free (state->console);
+          state->console = strdup ("tty1");
+        }
+
       ply_list_append_data (state->windows, create_window (state, state->console));
     }