aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/lib
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
commit62211d33edf5ed7241ba19ab26fd8f9743177a7f (patch)
treeb2190ecfdba025978495858b09c232cc6acff0db /package/base-files/files/lib
parent40f218d9d6f9882847fd7c8af5cd8bd07df34b36 (diff)
downloadupstream-62211d33edf5ed7241ba19ab26fd8f9743177a7f.tar.gz
upstream-62211d33edf5ed7241ba19ab26fd8f9743177a7f.tar.bz2
upstream-62211d33edf5ed7241ba19ab26fd8f9743177a7f.zip
[package] base-files: fix sysupgrade get_magic_word() function to return proper values if the first two bytes are identical
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17319 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/lib')
-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 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() {