From 1e457ae39c31c68db3b2ff81796fc74c5b3cba86 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 11 Jun 2008 16:46:04 -0400 Subject: [PATCH] Update populate and update initrd scripts to use the same lib heuristic as set-default-plugin --- scripts/plymouth-populate-initrd | 2 +- scripts/plymouth-update-initrd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/plymouth-populate-initrd b/scripts/plymouth-populate-initrd index f77063de..087d9f80 100755 --- a/scripts/plymouth-populate-initrd +++ b/scripts/plymouth-populate-initrd @@ -7,7 +7,7 @@ set -e [ -z "$LIBEXECDIR" ] && LIBEXECDIR="/usr/libexec" [ -z "$DATADIR" ] && DATADIR="/usr/share" [ -z "$SYSTEMMAP" ] && SYSTEM_MAP="/boot/System.map-$(/bin/uname -r)" -[ -z "$LIB" ] && [ $(head -n1 $SYSTEM_MAP | awk '{print $1}' | wc -c) -lt 16 ] && LIB="lib" || LIB="lib64" +[ -z "$LIB" ] && $(eu-readelf -h /usr/bin/plymouth | grep Class | grep -q ELF64) && LIB="lib64" || LIB="lib" [ -z "$LIBDIR" ] && LIBDIR="/usr/$LIB" [ -z "$BINDIR" ] && BINDIR="/usr/bin" [ -z "$GRUB_MENU_TITLE" ] && GRUB_MENU_TITLE="Graphical Bootup" diff --git a/scripts/plymouth-update-initrd b/scripts/plymouth-update-initrd index 6bf8ba98..a71099f8 100755 --- a/scripts/plymouth-update-initrd +++ b/scripts/plymouth-update-initrd @@ -8,7 +8,7 @@ set -e [ -z "$DATADIR" ] && DATADIR="/usr/share" [ -z "$INITRD" ] && INITRD="/boot/initrd-$(/sbin/grubby --default-kernel | sed 's/.*vmlinuz-//g').img" [ -z "$SYSTEMMAP" ] && SYSTEM_MAP="/boot/System.map-$(/bin/uname -r)" -[ -z "$LIB" ] && [ $(head -n1 $SYSTEM_MAP | awk '{print $1}' | wc -c) -lt 16 ] && LIB="lib" || LIB="lib64" +[ -z "$LIB" ] && $(eu-readelf -h /usr/bin/plymouth | grep Class | grep -q ELF64) && LIB="lib64" || LIB="lib" [ -z "$LIBDIR" ] && LIBDIR="/usr/$LIB" [ -z "$BINDIR" ] && BINDIR="/usr/bin" [ -z "$GRUB_MENU_TITLE" ] && GRUB_MENU_TITLE="Graphical Bootup"