From bb620fe4d0afc1b724038a050ebc8394a42b57cf Mon Sep 17 00:00:00 2001 From: Anssi Hannula Date: Sun, 17 Apr 2011 11:08:01 +0000 Subject: service_harddrake: Adapt from bootsplash to plymouth. --- perl-install/standalone/service_harddrake | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'perl-install/standalone/service_harddrake') diff --git a/perl-install/standalone/service_harddrake b/perl-install/standalone/service_harddrake index 412586e5c..9de83cf71 100755 --- a/perl-install/standalone/service_harddrake +++ b/perl-install/standalone/service_harddrake @@ -219,8 +219,7 @@ my $is_globetrotter = -f '/usr/sbin/mdkmove'; my (%config, $wait); my $in; -my $splash = -f '/proc/splash'; -my $splash_was_silent = cat_('/proc/splash') =~ /, silent : on/; +my $plymouth = -x '/bin/plymouth'; # For each hw, class, detect device, compare and offer to reconfigure if needed foreach my $hw_class (@harddrake::data::tree) { @@ -339,7 +338,7 @@ foreach my $hw_class (@harddrake::data::tree) { if (!$hw_class->{automatic}) { $SIG{ALRM} = sub { $no = 1; kill 15, $pid }; unless ($pid = fork()) { - $splash and eval { output('/proc/splash', 'verbose') } and $splash = 0; + $plymouth and system('plymouth', 'hide-splash'); exec("/usr/share/harddrake/confirm", $Ident, $timeout, $msg); } alarm($timeout); @@ -379,8 +378,4 @@ foreach my $hw_class (@harddrake::data::tree) { log::explanations("created file $last_boot_config"); Storable::store(\%config, $last_boot_config); -# restore bootsplash mode -$splash_was_silent and eval { output('/proc/splash', 'silent') }; - - $in->exit(0) if $in; -- cgit v1.2.1