diff options
| author | Felix Fietkau <nbd@openwrt.org> | 2014-10-19 21:46:08 +0000 |
|---|---|---|
| committer | Felix Fietkau <nbd@openwrt.org> | 2014-10-19 21:46:08 +0000 |
| commit | 0ef474a11867039b506d47e6e05d4633a11073ca (patch) | |
| tree | 5b322e333d4cbb9a0d086b0699f8be1460596c71 | |
| parent | f2a4294ab5fbc6c2f89be6d880d73e3915e32b8f (diff) | |
| download | upstream-0ef474a11867039b506d47e6e05d4633a11073ca.tar.gz upstream-0ef474a11867039b506d47e6e05d4633a11073ca.tar.bz2 upstream-0ef474a11867039b506d47e6e05d4633a11073ca.zip | |
base-files: fix ldd definition if /usr/bin/ldd exists
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42976
| -rw-r--r-- | package/base-files/files/lib/upgrade/common.sh | 2 |
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 ba9de99dc90..327322605a0 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> ... ] |
