From 0ef474a11867039b506d47e6e05d4633a11073ca Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 19 Oct 2014 21:46:08 +0000 Subject: [PATCH] base-files: fix ldd definition if /usr/bin/ldd exists Signed-off-by: Felix Fietkau SVN-Revision: 42976 --- package/base-files/files/lib/upgrade/common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index ba9de99dc9..327322605a 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -2,7 +2,7 @@ RAM_ROOT=/tmp/root -ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; } +[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; } libs() { ldd $* | awk '{print $3}'; } install_file() { # [ ... ] -- 2.30.2