From 3f91989cf323851d741b736fdca2560756800bb5 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 29 May 2008 16:54:00 -0400 Subject: 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. --- scripts/plymouth-update-initrd | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'scripts') 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" -- cgit