[PATCH 4/5] [main] restore initial vt when quitting

Scott James Remnant scott at ubuntu.com
Thu Mar 18 14:36:51 PDT 2010


Since we use plymouth on servers, and use a VT other than TTY1, we
need to switch back to VT1 at the end of the boot sequence.  This
adds that VT switch into the "plymouth quit when not deactivated"
path.
---
 src/main.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/main.c b/src/main.c
index 57a73d0..ce210a4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -639,6 +639,9 @@ quit_splash (state_t *state)
 
   if (state->terminal != NULL)
     {
+      if (!state->should_retain_splash)
+        ply_terminal_restore_vt (state->terminal);
+
       ply_terminal_close (state->terminal);
       ply_terminal_free (state->terminal);
       state->terminal = NULL;
-- 
1.7.0



More information about the plymouth mailing list