aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-07-24 14:06:24 +0000
committerOlivier Blin <oblin@mandriva.com>2008-07-24 14:06:24 +0000
commit77b547fcdf3e6f40543368907f4c7eb9267bf5d2 (patch)
treecbe3c93c2ea9f4a46aa327cfe72811c3671b4f67 /scripts
parent08d288ccebd929fce78f859531b04fcbbc7f7eca (diff)
downloadbootsplash-77b547fcdf3e6f40543368907f4c7eb9267bf5d2.tar
bootsplash-77b547fcdf3e6f40543368907f4c7eb9267bf5d2.tar.gz
bootsplash-77b547fcdf3e6f40543368907f4c7eb9267bf5d2.tar.bz2
bootsplash-77b547fcdf3e6f40543368907f4c7eb9267bf5d2.tar.xz
bootsplash-77b547fcdf3e6f40543368907f4c7eb9267bf5d2.zip
add splashy theme files if splashy is available
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/make-boot-splash-raw8
1 files changed, 6 insertions, 2 deletions
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