From 95ecaae3a36babd9501ee05e062f7f61f15b7ca6 Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Wed, 2 May 2012 22:46:20 +0000 Subject: fix shutting down --- files/halt.local.CD | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1