mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-12 09:54:53 +00:00
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
This commit is contained in:
parent
4b16b90152
commit
02c6798a0d
@ -3,7 +3,7 @@
|
|||||||
RAM_ROOT=/tmp/root
|
RAM_ROOT=/tmp/root
|
||||||
|
|
||||||
[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
|
[ -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> ... ]
|
install_file() { # <file> [ <file> ... ]
|
||||||
for file in "$@"; do
|
for file in "$@"; do
|
||||||
|
Loading…
Reference in New Issue
Block a user