diff options
author | Thomas Backlund <tmb@mageia.org> | 2012-05-02 22:46:20 +0000 |
---|---|---|
committer | Thomas Backlund <tmb@mageia.org> | 2012-05-02 22:46:20 +0000 |
commit | 95ecaae3a36babd9501ee05e062f7f61f15b7ca6 (patch) | |
tree | f94ac1794d328c118621e361917c0e31d47427d5 /files | |
parent | 2c07437c42b754b335654752f76dfaaa1d81093c (diff) | |
download | draklive-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
Diffstat (limited to 'files')
-rwxr-xr-x | files/halt.local.CD | 7 |
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 |