From 77b547fcdf3e6f40543368907f4c7eb9267bf5d2 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 24 Jul 2008 14:06:24 +0000 Subject: add splashy theme files if splashy is available --- scripts/make-boot-splash-raw | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/make-boot-splash-raw b/scripts/make-boot-splash-raw index c963025..2ec07ab 100755 --- a/scripts/make-boot-splash-raw +++ b/scripts/make-boot-splash-raw @@ -28,8 +28,12 @@ fi if `/bin/zcat $initrd_file 2> /dev/null | /bin/cpio -t &> /dev/null`; then tmp_dir=`mktemp -d` - /bin/zcat $initrd_file | cpio-filter --exclude bootsplash > $tmp_dir/initrd - if [[ -x /sbin/splash ]]; then + /bin/zcat $initrd_file | cpio-filter --exclude 'bootsplash|etc/splashy' > $tmp_dir/initrd + if [ -x /sbin/splashy ]; then + (echo /etc/splashy/themes; /usr/sbin/splashy_find_files) \ + | perl -MFile::Basename -ne 'm,^/(etc/splashy/.*), and print $1 . "\n" . dirname($1) . "\n"' \ + | sort -u | (cd / ; cpio -o -c -L --quiet -O $tmp_dir/initrd --append) + elif [[ -x /sbin/splash ]]; then /sbin/splash -s -f $config > $tmp_dir/bootsplash echo bootsplash | (cd $tmp_dir ; cpio -o -c --quiet -O $tmp_dir/initrd --append) fi -- cgit v1.2.1