aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/remove-boot-splash
diff options
context:
space:
mode:
authorFrederic Crozat <fcrozat@mandriva.com>2009-10-07 14:43:17 +0000
committerFrederic Crozat <fcrozat@mandriva.com>2009-10-07 14:43:17 +0000
commit88e8551b2edd61408e12fdc7cf961dc23fbef8bc (patch)
tree26d397697f0aa0fc2a19e8693d7d53b7352646ff /scripts/remove-boot-splash
parent9b530ac7424a69506b5c4d2c78f836e2461a3ec8 (diff)
downloadbootsplash-88e8551b2edd61408e12fdc7cf961dc23fbef8bc.tar
bootsplash-88e8551b2edd61408e12fdc7cf961dc23fbef8bc.tar.gz
bootsplash-88e8551b2edd61408e12fdc7cf961dc23fbef8bc.tar.bz2
bootsplash-88e8551b2edd61408e12fdc7cf961dc23fbef8bc.tar.xz
bootsplash-88e8551b2edd61408e12fdc7cf961dc23fbef8bc.zip
- Port to plymouth
Diffstat (limited to 'scripts/remove-boot-splash')
-rw-r--r--scripts/remove-boot-splash8
1 files changed, 4 insertions, 4 deletions
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