summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-06-09 16:08:33 -0400
committerRay Strode <rstrode@redhat.com>2008-06-09 16:09:34 -0400
commit6287646e2465df8a365ab913c46ee22fce5cd3c5 (patch)
tree9497e4cb3e88e6a7323443a8bff51d7eb3fe375c
parent285c3d591f5f2f54af045614be803f74ca168b49 (diff)
downloadplymouth-6287646e2465df8a365ab913c46ee22fce5cd3c5.tar.gz
plymouth-6287646e2465df8a365ab913c46ee22fce5cd3c5.tar.xz
plymouth-6287646e2465df8a365ab913c46ee22fce5cd3c5.zip
redirect console io to tty7
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 16812a9..a95f1bd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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");