summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xfiles/halt.local.CD7
1 files changed, 6 insertions, 1 deletions
diff --git a/files/halt.local.CD b/files/halt.local.CD
index 1e9fc67..e34f56d 100755
--- a/files/halt.local.CD
+++ b/files/halt.local.CD
@@ -8,7 +8,12 @@ use c;
my ($device) = cat_("/proc/mounts") =~ m!(/dev/\S+)\s+/live/media\s+iso9660!;
$device or exit;
-system("chvt 1");
+# stop plymouth
+system("/bin/plymouth quit");
+# send SIGRTMIN+20 to systemd to enable console output
+system("/bin/kill -54 1");
+# switch to console 1
+system("/usr/bin/chvt 1");
# try to put halt/reboot in cache, if not called directly from them
# mount is also needed by end of /etc/init.d/halt