aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-10-19 21:46:08 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-10-19 21:46:08 +0000
commit069e264caa757bde7ad6a380e79678c24514843e (patch)
treea3ed06706ea32bf3e5bb348019cbab53e7dad751 /package/base-files/files
parent8536f53c680c0abfa54c28fccde05da3f78a8d98 (diff)
downloadupstream-069e264caa757bde7ad6a380e79678c24514843e.tar.gz
upstream-069e264caa757bde7ad6a380e79678c24514843e.tar.bz2
upstream-069e264caa757bde7ad6a380e79678c24514843e.zip
base-files: fix ldd definition if /usr/bin/ldd exists
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42976 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files')
-rw-r--r--package/base-files/files/lib/upgrade/common.sh2
1 files changed, 1 insertions, 1 deletions
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() { # <file> [ <file> ... ]