base-files: fix ldd definition if /usr/bin/ldd exists
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 19 Oct 2014 21:46:08 +0000 (21:46 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 19 Oct 2014 21:46:08 +0000 (21:46 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42976 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/base-files/files/lib/upgrade/common.sh

index ba9de99..3273226 100644 (file)
@@ -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> ... ]