diff options
author | Ray Strode <rstrode@redhat.com> | 2008-06-11 17:01:07 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2008-06-11 17:19:55 -0400 |
commit | bf73740db58d8c05db007575e593a6355e6f34a7 (patch) | |
tree | 00e05d00d440e5063f50408ac0d17e408e4ef570 /scripts | |
parent | 1e457ae39c31c68db3b2ff81796fc74c5b3cba86 (diff) | |
download | plymouth-bf73740db58d8c05db007575e593a6355e6f34a7.tar.gz plymouth-bf73740db58d8c05db007575e593a6355e6f34a7.tar.xz plymouth-bf73740db58d8c05db007575e593a6355e6f34a7.zip |
Generate helper scripts so the right logo is included
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.am | 10 | ||||
-rwxr-xr-x | scripts/plymouth-populate-initrd.in (renamed from scripts/plymouth-populate-initrd) | 2 | ||||
-rwxr-xr-x | scripts/plymouth-update-initrd.in (renamed from scripts/plymouth-update-initrd) | 2 |
3 files changed, 10 insertions, 4 deletions
diff --git a/scripts/Makefile.am b/scripts/Makefile.am index b780f2e..3f59305 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -6,10 +6,16 @@ initrdscript_SCRIPTS = plymouth-update-initrd plymouth-populate-initrd sbinscriptsdir = $(sbindir) sbinscripts_SCRIPTS = plymouth-set-default-plugin +plymouth-update-initrd: plymouth-update-initrd.in + sed -e 's,[@]logofile[@],$(logofile),g' plymouth-update-initrd.in > plymouth-update-initrd + +plymouth-populate-initrd: plymouth-populate-initrd.in + sed -e 's,[@]logofile[@],$(logofile),g' plymouth-populate-initrd.in > plymouth-populate-initrd + if ADD_BOOT_ENTRY -install-data-hook: +install-data-hook: plymouth-update-initrd plymouth-populate-initrd PLYMOUTH_LOGO_FILE=$(logofile) $(initrdscriptdir)/plymouth-update-initrd endif EXTRA_DIST=$(initrdscript_SCRIPTS) $(sbinscripts_SCRIPTS) $(noinst_SCRIPTS) default.cfg -MAINTAINERCLEANFILES = Makefile.in +MAINTAINERCLEANFILES = Makefile.in plymouth-update-inird plymouth-populate-initrd diff --git a/scripts/plymouth-populate-initrd b/scripts/plymouth-populate-initrd.in index 087d9f8..99a8d4d 100755 --- a/scripts/plymouth-populate-initrd +++ b/scripts/plymouth-populate-initrd.in @@ -11,7 +11,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" +[ -z "$PLYMOUTH_LOGO_FILE" ] && PLYMOUTH_LOGO_FILE="@logofile@" INITRDDIR=$1 && shift if [ -z "$INITRDDIR" ]; then diff --git a/scripts/plymouth-update-initrd b/scripts/plymouth-update-initrd.in index a71099f..24699d9 100755 --- a/scripts/plymouth-update-initrd +++ b/scripts/plymouth-update-initrd.in @@ -12,7 +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" +[ -z "$PLYMOUTH_LOGO_FILE" ] && PLYMOUTH_LOGO_FILE="@logofile@" if [ -z "$NEW_INITRD" ]; then NEW_INITRD="$(dirname $INITRD)/$(basename $INITRD .img)-plymouth.img" |