[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
This commit is contained in:
Jo-Philipp Wich
2009-08-19 19:12:34 +00:00
parent 40f218d9d6
commit 62211d33ed

View File

@@ -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() {