]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
redirect console io to tty7
authorRay Strode <rstrode@redhat.com>
Mon, 9 Jun 2008 20:08:33 +0000 (16:08 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 9 Jun 2008 20:09:34 +0000 (16:09 -0400)
src/main.c

index 16812a951a5046f6819dbfd75d504e70f78e55dd..a95f1bde068eedf9951f8366be29a0386961be8e 100644 (file)
@@ -315,11 +315,11 @@ check_verbosity (state_t *state)
 }
 
 static bool
-set_console_io_to_vt1 (state_t *state)
+set_console_io_to_vt7 (state_t *state)
 {
   int fd;
 
-  fd = open ("/dev/tty1", O_RDWR | O_APPEND);
+  fd = open ("/dev/tty7", O_RDWR | O_APPEND);
 
   if (fd < 0)
     return false;
@@ -369,7 +369,7 @@ initialize_environment (state_t *state)
   if (!plymouth_should_be_running (state))
     return false;
 
-  if (!set_console_io_to_vt1 (state))
+  if (!set_console_io_to_vt7 (state))
     return false;
 
   ply_trace ("initialized minimal work environment");