1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 00:14:05 +02:00

[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:
jow 2009-08-19 19:12:34 +00:00
parent 401569979c
commit d72fab0bfc

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