X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=blobdiff_plain;f=package%2Fbase-files%2Ffiles%2Flib%2Fupgrade%2Fcommon.sh;fp=package%2Fbase-files%2Ffiles%2Flib%2Fupgrade%2Fcommon.sh;h=f0d0c20b900bd92dfb08f1889adad8b75123fb37;hp=7584b773dd33a750a1415cd60b361166e5d3dacd;hb=727db54052cb31cafb13a2b39d441045bc716b44;hpb=da1c9cf11b74c1b2bcff38cbe11579abfe79f24c diff --git a/package/base-files/files/lib/upgrade/common.sh b/package/base-files/files/lib/upgrade/common.sh index 7584b773d..f0d0c20b9 100644 --- a/package/base-files/files/lib/upgrade/common.sh +++ b/package/base-files/files/lib/upgrade/common.sh @@ -113,7 +113,7 @@ get_image() { } get_magic_word() { - get_image "$1" | dd bs=2 count=1 2>/dev/null | hexdump | awk '$2 { print $2 }' + get_image "$1" | dd bs=2 count=1 2>/dev/null | hexdump -C | awk '$2 { print $2 $3 }' } refresh_mtd_partitions() {