diff options
author | Chmouel Boudjnah <chmou@mandriva.com> | 2002-02-08 15:45:01 +0000 |
---|---|---|
committer | Chmouel Boudjnah <chmou@mandriva.com> | 2002-02-08 15:45:01 +0000 |
commit | 20087bab5df69067cd2f8ceffe6c269d93965446 (patch) | |
tree | 15ec8a3067b9c7d1784acf723e5d1e7291e31b2a /scripts/make-boot-splash | |
parent | 3a4d44993c34672ca55370de1652230f8c92afbd (diff) | |
download | bootsplash-20087bab5df69067cd2f8ceffe6c269d93965446.tar bootsplash-20087bab5df69067cd2f8ceffe6c269d93965446.tar.gz bootsplash-20087bab5df69067cd2f8ceffe6c269d93965446.tar.bz2 bootsplash-20087bab5df69067cd2f8ceffe6c269d93965446.tar.xz bootsplash-20087bab5df69067cd2f8ceffe6c269d93965446.zip |
Add themes support
Diffstat (limited to 'scripts/make-boot-splash')
-rwxr-xr-x | scripts/make-boot-splash | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/scripts/make-boot-splash b/scripts/make-boot-splash index 674fbff..e524606 100755 --- a/scripts/make-boot-splash +++ b/scripts/make-boot-splash @@ -7,6 +7,9 @@ : ${splash_dir=/usr/share/bootsplash} +[[ -f /etc/sysconfig/bootsplash ]] && source /etc/sysconfig/bootsplash +[[ -z $THEME ]] && THEME=Mandrake + initrd_file=$1 [[ -z $initrd_file ]] && { @@ -28,9 +31,9 @@ elif [[ $vgamode == 1280* ]];then resolution=1280x1024 fi -if [[ -f $splash_dir/images/bootsplash-$resolution.jpg && -f $splash_dir/cfg/bootsplash-$resolution.cfg ]];then - image=$splash_dir/images/bootsplash-$resolution.jpg - config=$splash_dir/cfg/bootsplash-$resolution.cfg +if [[ -f $splash_dir/themes/$THEME/images/bootsplash-$resolution.jpg && -f $splash_dir/themes/$THEME/cfg/bootsplash-$resolution.cfg ]];then + image=$splash_dir/themes/$THEME/images/bootsplash-$resolution.jpg + config=$splash_dir/themes/$THEME/cfg/bootsplash-$resolution.cfg fi if [[ -n $image ]];then |