summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-08-19 19:12:34 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-08-19 19:12:34 +0000
commit7d1c2a0612d24622cd4fb46eb119d49fd498269f (patch)
treede5c60b773a962e5a9135fe525f00b26af042d50 /package
parent3cb84887f56bf06173d5d95cbe959c458650de06 (diff)
downloadmtk-20170518-7d1c2a0612d24622cd4fb46eb119d49fd498269f.zip
mtk-20170518-7d1c2a0612d24622cd4fb46eb119d49fd498269f.tar.gz
mtk-20170518-7d1c2a0612d24622cd4fb46eb119d49fd498269f.tar.bz2
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')
-rw-r--r--package/base-files/files/lib/upgrade/common.sh2
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 06c257b..ff3012b 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() {