summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-05-29 16:54:00 -0400
committerRay Strode <rstrode@redhat.com>2008-05-29 16:54:00 -0400
commit3f91989cf323851d741b736fdca2560756800bb5 (patch)
tree49c5e0d42339fa4614630ec4ca27f7077ea22f23 /scripts
parent6226cd1119f10453111e11f560027719ea3831a5 (diff)
downloadplymouth-3f91989cf323851d741b736fdca2560756800bb5.tar.gz
plymouth-3f91989cf323851d741b736fdca2560756800bb5.tar.xz
plymouth-3f91989cf323851d741b736fdca2560756800bb5.zip
Allow distro/system builder to specify path to logo
Previously we've just hard coded the location to the fedora logo. Now it's a configure time flag. We also have a configure time flag for a background color that goes with the logo, but none of the splash plugins make use of it yet.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/plymouth-update-initrd7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/plymouth-update-initrd b/scripts/plymouth-update-initrd
index 2839a23..e5e0414 100755
--- a/scripts/plymouth-update-initrd
+++ b/scripts/plymouth-update-initrd
@@ -12,6 +12,7 @@ set -e
[ -z "$LIBDIR" ] && LIBDIR="/usr/$LIB"
[ -z "$BINDIR" ] && BINDIR="/usr/bin"
[ -z "$GRUB_MENU_TITLE" ] && GRUB_MENU_TITLE="Graphical Bootup"
+[ -z "$PLYMOUTH_LOGO_FILE" ] && PLYMOUTH_LOGO_FILE="/usr/share/pixmaps/system-logo-white.png"
if [ -z "$NEW_INITRD" ]; then
NEW_INITRD="$(dirname $INITRD)/$(basename $INITRD .img)-plymouth.img"
@@ -44,9 +45,7 @@ TMPDIR="$(mktemp -d $PWD/initrd.XXXXXXXXXX)"
install -m755 ${LIBEXECDIR}/plymouth/plymouthd bin
install -m755 ${BINDIR}/plymouth bin
- mkdir -p ${TMPDIR}$DATADIR/plymouth/spinfinity
-
- install -m644 ${DATADIR}/pixmaps/fedora-logo.png ${TMPDIR}${DATADIR}/plymouth/spinfinity
+ mkdir -p ${TMPDIR}${DATADIR}/plymouth/spinfinity
install -m644 ${DATADIR}/plymouth/spinfinity/lock.png ${TMPDIR}${DATADIR}/plymouth/spinfinity
install -m644 ${DATADIR}/plymouth/spinfinity/entry.png ${TMPDIR}${DATADIR}/plymouth/spinfinity
install -m644 ${DATADIR}/plymouth/spinfinity/bullet.png ${TMPDIR}${DATADIR}/plymouth/spinfinity
@@ -58,6 +57,8 @@ TMPDIR="$(mktemp -d $PWD/initrd.XXXXXXXXXX)"
install -m755 ${LIBDIR}/plymouth/text.so ${TMPDIR}${LIBDIR}/plymouth
install -m755 ${LIBDIR}/plymouth/details.so ${TMPDIR}${LIBDIR}/plymouth
+ install -D -m644 ${PLYMOUTH_LOGO_FILE} ${TMPDIR}${PLYMOUTH_LOGO_FILE}
+
rm -f $NEW_INITRD
find | cpio --quiet -Hnewc -o | gzip -9 > $NEW_INITRD
[ $? -eq 0 ] && echo "Wrote $NEW_INITRD"