From: Felix Fietkau 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://git.lede-project.org./?a=commitdiff_plain;h=0ef474a11867039b506d47e6e05d4633a11073ca;p=openwrt%2Fstaging%2Fluka.git base-files: fix ldd definition if /usr/bin/ldd exists Signed-off-by: Felix Fietkau SVN-Revision: 42976 --- 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() { # [ ... ]