aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/Makefile5
-rw-r--r--scripts/bootsplash.sysconfig26
-rwxr-xr-xscripts/make-boot-splash9
3 files changed, 36 insertions, 4 deletions
diff --git a/scripts/Makefile b/scripts/Makefile
index e27fd95..c39fe83 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -1,15 +1,18 @@
PL=detect-resolution
SH=make-boot-splash rewritejpeg
+SYS=bootsplash.sysconfig
sharedir=/usr/share
+etcsysdir=/etc/sysconfig
check:
@for i in $(SH);do /bin/bash -n $$i || exit 1;echo $$i syntax OK;done
@for i in $(PL);do perl -c $$i ||exit 1;done
install:
- @mkdir -p $(prefix)$(sharedir)/bootsplash/scripts/
+ @mkdir -p $(prefix)$(sharedir)/bootsplash/scripts/ $(prefix)$(etcsysdir)
@for i in $(SH) $(PL);do install -m755 $$i $(prefix)$(sharedir)/bootsplash/scripts/;done
+ install -m644 bootsplash.sysconfig $(prefix)$(etcsysdir)/bootsplash
clean:
rm -f *~ \#*\# \ No newline at end of file
diff --git a/scripts/bootsplash.sysconfig b/scripts/bootsplash.sysconfig
new file mode 100644
index 0000000..7fefdb8
--- /dev/null
+++ b/scripts/bootsplash.sysconfig
@@ -0,0 +1,26 @@
+# -*- Mode: shell-script -*-
+# Specify here if you want add the splash logo to initrd when
+# generating an initrd. You can specify :
+#
+# SPLASH=no to don't have a splash screen
+#
+# SPLASH=auto to make autodetect the splash screen
+#
+# SPLASH=INT When Integer could be 800x600 1024x768 1280x1024
+#
+SPLASH=auto
+
+# Choose the themes. The should be based in
+# /usr/share/bootsplash/themes/
+THEME=Mandrake
+
+# Say yes here if you want to leave the logo on the console.
+# Three options :
+#
+# LOGO_CONSOLE=no don't display logo under console.
+#
+# LOGO_CONSOLE=yes display logo under console.
+#
+# LOGO_CONSOLE=theme leave the theme to decide.
+#
+LOGO_CONSOLE=theme
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