summaryrefslogtreecommitdiff
path: root/package/base-files/files
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2014-11-19 12:17:37 +0000
committerJonas Gorski <jogo@openwrt.org>2014-11-19 12:17:37 +0000
commit02c6798a0dbb8f182cb6a49d75c7cd21f8462106 (patch)
tree8a971de3558d7563f91da57e16dcc05c4df5c7db /package/base-files/files
parent4b16b9015253abe3fa1d42ed0e367c5b7a0e8398 (diff)
downloadmtk-20170518-02c6798a0dbb8f182cb6a49d75c7cd21f8462106.zip
mtk-20170518-02c6798a0dbb8f182cb6a49d75c7cd21f8462106.tar.gz
mtk-20170518-02c6798a0dbb8f182cb6a49d75c7cd21f8462106.tar.bz2
base-files: supress errors from ldd
ldd might be called for shell scrips during sysupgrade, causing it to complain that they are not a dynamic executables. This is a harmless error, so supress it to avoid confusing about them being serious ones. Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 43315
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 9123359..f9b30a4 100644
--- a/package/base-files/files/lib/upgrade/common.sh
+++ b/package/base-files/files/lib/upgrade/common.sh
@@ -3,7 +3,7 @@
RAM_ROOT=/tmp/root
[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
-libs() { ldd $* | sed -r 's/(.* => )?(.*) .*/\2/'; }
+libs() { ldd $* 2>/dev/null | sed -r 's/(.* => )?(.*) .*/\2/'; }
install_file() { # <file> [ <file> ... ]
for file in "$@"; do