From 88e8551b2edd61408e12fdc7cf961dc23fbef8bc Mon Sep 17 00:00:00 2001 From: Frederic Crozat Date: Wed, 7 Oct 2009 14:43:17 +0000 Subject: - Port to plymouth --- scripts/remove-boot-splash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/remove-boot-splash') diff --git a/scripts/remove-boot-splash b/scripts/remove-boot-splash index f7e7b63..c7317e5 100644 --- a/scripts/remove-boot-splash +++ b/scripts/remove-boot-splash @@ -13,12 +13,12 @@ if (!system("/bin/zcat $initrd 2> /dev/null | /bin/cpio -t &> /dev/null")) { chomp(my $tmp_dir = `mktemp -d`); chdir $tmp_dir; system("/bin/zcat $initrd 2>/dev/null | /bin/cpio -id 2>/dev/null"); - if (-f "$tmp_dir/bootsplash") { - unlink "$tmp_dir/bootsplash" or die "FATAL: removing of $tmp_dir/bootsplash failed"; - print STDERR "remove-boot-splash: removing bootsplash from initrd\n"; + if (-d "$tmp_dir/usr/share/plymouth") { + system("rm -fr $tmp_dir/usr/share/plymouth $tmp_dir/usr/lib/plymouth $tmp_dir/usr/lib/libply* $tmp_dir/lib/libply* $tmp_dir/bin/plymouthd $tmp_dir/bin/plymouth"); + print STDERR "remove-boot-splash: removing plymouth from initrd\n"; system("/bin/find . -print | /bin/cpio --quiet -c -o 2> /dev/null | gzip -c > $initrd") } else { - print STDERR "ERROR remove-boot-splash: bootsplash image not found in $initrd\n" + print STDERR "ERROR remove-boot-splash: plymouth not found in $initrd\n" } system("rm -rf $tmp_dir"); exit -- cgit v1.2.1