diff options
author | Colin Guthrie <colin@mageia.org> | 2012-04-14 13:59:38 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2012-04-14 13:59:38 +0000 |
commit | 1b9af6fd0d97562b616f0a7381791ae1337d6f16 (patch) | |
tree | f0a704f049f9026743d4998bfae7e92c8b443bf9 /scripts | |
parent | ccc8760dbb7842fb789432d783e0d57c6c0e6cbd (diff) | |
download | bootsplash-1b9af6fd0d97562b616f0a7381791ae1337d6f16.tar bootsplash-1b9af6fd0d97562b616f0a7381791ae1337d6f16.tar.gz bootsplash-1b9af6fd0d97562b616f0a7381791ae1337d6f16.tar.bz2 bootsplash-1b9af6fd0d97562b616f0a7381791ae1337d6f16.tar.xz bootsplash-1b9af6fd0d97562b616f0a7381791ae1337d6f16.zip |
Actually use the THEME name passed in.
The theme name passed in on the command line was never used.
Use it :)
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/make-boot-splash-raw | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/make-boot-splash-raw b/scripts/make-boot-splash-raw index 327240d..996be5a 100755 --- a/scripts/make-boot-splash-raw +++ b/scripts/make-boot-splash-raw @@ -40,7 +40,10 @@ if ( /bin/zcat $initrd_file 2> /dev/null | /bin/cpio -it &> /dev/null ); then mkdir $tmp_dir/plymouth cd $tmp_dir/plymouth || clean_and_fail /bin/zcat $initrd_file | /bin/cpio -id --quiet || clean_and_fail - /usr/libexec/plymouth/plymouth-populate-initrd -t . || clean_and_fail + + # If the theme has changed, we should remove the old one first to save space + rm -rf $tmp_dir/plymouth/usr/share/plymouth/themes + PLYMOUTH_THEME_NAME=$THEME /usr/libexec/plymouth/plymouth-populate-initrd -t . || clean_and_fail /bin/find . | \ cpio -R 0:0 -H newc -o --quiet | \ @@ -57,7 +60,7 @@ else gzip -dc $initrd_file > $tmp_initrd 2> /dev/null || clean_and_fail mount -o loop $tmp_initrd $tmp_dir 2> /dev/null || clean_and_fail rm -rf $tmp_dir/usr/share/plymouth $tmp_dir/usr/lib*/plymouth - /usr/libexec/plymouth/plymouth-populate-initrd -t $tmp_dir + PLYMOUTH_THEME_NAME=$THEME /usr/libexec/plymouth/plymouth-populate-initrd -t $tmp_dir rc=$? umount $tmp_dir 2>/dev/null [ $rc -ne 0 ] && clean_and_fail |