[Mageia-dev] [soft-commits] [4379] fix shutting down

Thierry Vignaud thierry.vignaud at gmail.com
Thu May 3 08:17:56 CEST 2012


On 3 May 2012 00:46,  <root at mageia.org> wrote:
> --- images-config/draklive/trunk/files/halt.local.CD	2012-05-02 19:16:46 UTC
> (rev 4378)
> +++ images-config/draklive/trunk/files/halt.local.CD	2012-05-02 22:46:20 UTC
> (rev 4379)
> @@ -8,7 +8,12 @@
>  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");

please use system("/usr/bin/chvt", "1"), or system(qw(/usr/bin/chvt 1))
instead in order to not fork useless shells.


More information about the Mageia-dev mailing list