From: Jo-Philipp Wich Date: Wed, 19 Aug 2009 19:12:34 +0000 (+0000) Subject: base-files: fix sysupgrade get_magic_word() function to return proper values if the... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7d1c2a0612d24622cd4fb46eb119d49fd498269f;p=openwrt%2Fstaging%2Fdangole.git base-files: fix sysupgrade get_magic_word() function to return proper values if the first two bytes are identical SVN-Revision: 17319 --- diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 06c257b639..ff3012bcc1 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -124,7 +124,7 @@ get_image() { # [ ] } get_magic_word() { - get_image "$@" | dd bs=2 count=1 2>/dev/null | hexdump -n 2 -e '1/1 "%02x"' + get_image "$@" | dd bs=2 count=1 2>/dev/null | hexdump -v -n 2 -e '1/1 "%02x"' } refresh_mtd_partitions() {