diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-19 19:44:26 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-10-19 19:44:26 +0000 |
commit | 9bc2e93f4b6f61e3d22474b2ff581c9e776cf542 (patch) | |
tree | ce5d161ed0da4b5188d01024c74b723384ed2c0f /target/linux/ramips/base-files/lib/upgrade | |
parent | 5477f59de6b83b561d3ffef82ec1ed6cf4a3a6c1 (diff) | |
download | openwrt-9bc2e93f4b6f61e3d22474b2ff581c9e776cf542.tar.gz openwrt-9bc2e93f4b6f61e3d22474b2ff581c9e776cf542.zip |
AA: ramips: use get_magic_long in sysupgrade image check
Backport of r33842.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/branches/attitude_adjustment@33871 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files/lib/upgrade')
-rwxr-xr-x | target/linux/ramips/base-files/lib/upgrade/platform.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/base-files/lib/upgrade/platform.sh b/target/linux/ramips/base-files/lib/upgrade/platform.sh index 5ebf42a85..2857599d0 100755 --- a/target/linux/ramips/base-files/lib/upgrade/platform.sh +++ b/target/linux/ramips/base-files/lib/upgrade/platform.sh @@ -9,7 +9,7 @@ RAMFS_COPY_DATA=/lib/ramips.sh platform_check_image() { local board=$(ramips_board_name) - local magic="$(get_magic_word "$1")" + local magic="$(get_magic_long "$1")" [ "$ARGC" -gt 1 ] && return 1 @@ -51,7 +51,7 @@ platform_check_image() { whr-g300n |\ ur-336un |\ wr512-3gn) - [ "$magic" != "2705" ] && { + [ "$magic" != "27051956" ] && { echo "Invalid image type." return 1 } |