Author: nbd
Date: 2014-10-19 23:46:08 +0200 (Sun, 19 Oct 2014)
New Revision: 42976

Modified:
   trunk/package/base-files/files/lib/upgrade/common.sh
Log:
base-files: fix ldd definition if /usr/bin/ldd exists

Signed-off-by: Felix Fietkau <[email protected]>

Modified: trunk/package/base-files/files/lib/upgrade/common.sh
===================================================================
--- trunk/package/base-files/files/lib/upgrade/common.sh        2014-10-19 
21:46:03 UTC (rev 42975)
+++ trunk/package/base-files/files/lib/upgrade/common.sh        2014-10-19 
21:46:08 UTC (rev 42976)
@@ -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> ... ]
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to