From: nbd Date: Sun, 19 Oct 2014 21:46:08 +0000 (+0000) Subject: base-files: fix ldd definition if /usr/bin/ldd exists X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=70b3dded17e096339d1f585441c7f189310a46d0;p=openwrt.git base-files: fix ldd definition if /usr/bin/ldd exists Signed-off-by: Felix Fietkau git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42976 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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() { # [ ... ]