From: John Crispin Date: Wed, 11 Jun 2014 13:00:25 +0000 (+0000) Subject: base-files: properly remove stderr from zcat/bzcat X-Git-Tag: reboot~6950 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=bedd6f44a5f7f812f77e20d294f562223af796da;p=openwrt%2Fstaging%2Fjogo.git base-files: properly remove stderr from zcat/bzcat Signed-off-by: John Crispin SVN-Revision: 41135 --- diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 11de82904c..91e61ba4f8 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -182,11 +182,11 @@ get_image() { # [ ] } get_magic_word() { - get_image "$@" | dd bs=2 count=1 2>/dev/null | hexdump -v -n 2 -e '1/1 "%02x"' + (get_image "$@" | dd bs=2 count=1 | hexdump -v -n 2 -e '1/1 "%02x"') 2>/dev/null } get_magic_long() { - get_image "$@" | dd bs=4 count=1 2>/dev/null | hexdump -v -n 4 -e '1/1 "%02x"' + (get_image "$@" | dd bs=4 count=1 | hexdump -v -n 4 -e '1/1 "%02x"') 2>/dev/null } jffs2_copy_config() {