From d8086a93a37e1e76c7b544a13faef13683c79b62 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Wed, 9 Jul 2008 21:31:20 -0400 Subject: Compute libdir using yet a different heuristic The previous one falls over for ia64 --- scripts/plymouth-set-default-plugin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/plymouth-set-default-plugin') diff --git a/scripts/plymouth-set-default-plugin b/scripts/plymouth-set-default-plugin index a2ac8fd..3edee7a 100755 --- a/scripts/plymouth-set-default-plugin +++ b/scripts/plymouth-set-default-plugin @@ -4,7 +4,7 @@ set -e [ -z "$LIBEXECDIR" ] && LIBEXECDIR="/usr/libexec" [ -z "$DATADIR" ] && DATADIR="/usr/share" -[ -z "$LIB" ] && $(eu-readelf -h /usr/bin/plymouth | grep Class | grep -q ELF64) && LIB="lib64" || LIB="lib" +[ -z "$LIB" ] && $(echo nash-showelfinterp /usr/bin/plymouth | /sbin/nash --forcequiet | grep -q lib64) && LIB="lib64" || LIB="lib" [ -z "$LIBDIR" ] && LIBDIR="/usr/$LIB" [ -z "$BINDIR" ] && BINDIR="/usr/bin" -- cgit