diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-19 19:12:34 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-08-19 19:12:34 +0000 |
commit | 7d1c2a0612d24622cd4fb46eb119d49fd498269f (patch) | |
tree | de5c60b773a962e5a9135fe525f00b26af042d50 /package/base-files | |
parent | 3cb84887f56bf06173d5d95cbe959c458650de06 (diff) | |
download | upstream-7d1c2a0612d24622cd4fb46eb119d49fd498269f.tar.gz upstream-7d1c2a0612d24622cd4fb46eb119d49fd498269f.tar.bz2 upstream-7d1c2a0612d24622cd4fb46eb119d49fd498269f.zip |
base-files: fix sysupgrade get_magic_word() function to return proper values if the first two bytes are identical
SVN-Revision: 17319
Diffstat (limited to 'package/base-files')
-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 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() { # <source> [ <command> ] } 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() { |