[readonly/geninitrd/bootsplash: 171/176] - added bootsplash generating support
draenog
draenog at pld-linux.org
Sat Nov 2 19:24:37 CET 2013
commit 8b16e082385ebc8ce5b99cca05b28bd16c32d96e
Author: pzurowski <pzurowski at pld-linux.org>
Date: Tue Dec 23 20:01:54 2003 +0000
- added bootsplash generating support
svn-id: @3067
geninitrd | 15 +++++++++++++++
1 file changed, 15 insertions(+)
---
diff --git a/geninitrd b/geninitrd
index 71166af..448cfd1 100755
--- a/geninitrd
+++ b/geninitrd
@@ -600,6 +600,12 @@ if [ -r /etc/sysconfig/geninitrd ] ; then
. /etc/sysconfig/geninitrd
fi
+# default bootsplash is off, if it have to be on, install bootsplash package
+BOOT_SPLASH=no
+if [ -r /etc/sysconfig/bootsplash ] ; then
+ . /etc/sysconfig/bootsplash
+fi
+
if [ "x" = "x$INITRDFS" ] ; then
if [ "x" = "x$FS" ] ; then
# default value
@@ -980,4 +986,13 @@ if is_yes "$COMPRESS" ; then
else
cp -a "$IMAGE" "$target"
fi
+
+if is_yes "$BOOT_SPLASH"; then
+ if [ -x /bin/splash.bin ] && [ "x" != "x$THEME" ]; then
+ for res in $BOOT_SPLASH_RESOLUTIONS; do
+ /bin/splash.bin -s -f "/etc/bootsplash/themes/$THEME/config/bootsplash-$res.cfg" >> "$target"
+ done
+ fi
+fi
+
rm -rf "$MNTIMAGE" "$MNTPOINT" "$IMAGE"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/e78d0464d014f4052036c0d83d354a7bb744825d
More information about the pld-cvs-commit
mailing list