Author: jogo Date: 2014-11-19 13:17:37 +0100 (Wed, 19 Nov 2014) New Revision: 43315
Modified: trunk/package/base-files/files/lib/upgrade/common.sh Log: 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 <[email protected]> Modified: trunk/package/base-files/files/lib/upgrade/common.sh =================================================================== --- trunk/package/base-files/files/lib/upgrade/common.sh 2014-11-19 12:17:34 UTC (rev 43314) +++ trunk/package/base-files/files/lib/upgrade/common.sh 2014-11-19 12:17:37 UTC (rev 43315) @@ -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 _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
