summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2012-05-02 22:46:20 +0000
committerThomas Backlund <tmb@mageia.org>2012-05-02 22:46:20 +0000
commit95ecaae3a36babd9501ee05e062f7f61f15b7ca6 (patch)
treef94ac1794d328c118621e361917c0e31d47427d5
parent2c07437c42b754b335654752f76dfaaa1d81093c (diff)
downloaddraklive-config-95ecaae3a36babd9501ee05e062f7f61f15b7ca6.tar
draklive-config-95ecaae3a36babd9501ee05e062f7f61f15b7ca6.tar.gz
draklive-config-95ecaae3a36babd9501ee05e062f7f61f15b7ca6.tar.bz2
draklive-config-95ecaae3a36babd9501ee05e062f7f61f15b7ca6.tar.xz
draklive-config-95ecaae3a36babd9501ee05e062f7f61f15b7ca6.zip
fix shutting down
-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