mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-02 07:26:51 +01:00
base-files: fix sysupgrade get_magic_word() function to return proper values if the first two bytes are identical
SVN-Revision: 17319
This commit is contained in:
parent
3cb84887f5
commit
7d1c2a0612
1 changed files with 1 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue