diff options
author | Jonas Gorski <jogo@openwrt.org> | 2014-11-19 12:17:37 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2014-11-19 12:17:37 +0000 |
commit | a83eac388fefa884b0d9183e78036c197a756012 (patch) | |
tree | a4a997d836e2d078ce0d0008304b15f897f6e337 /package/base-files/files/lib/upgrade | |
parent | b5ff15f7054199ca4d973115743b5f5392feb2dc (diff) | |
download | upstream-a83eac388fefa884b0d9183e78036c197a756012.tar.gz upstream-a83eac388fefa884b0d9183e78036c197a756012.tar.bz2 upstream-a83eac388fefa884b0d9183e78036c197a756012.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43315 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/lib/upgrade')
-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 9123359d1b..f9b30a461b 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 |