From 42ede6499f3549f148d5eba019cd4094e8253d76 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Fri, 19 Oct 2012 19:44:26 +0000 Subject: [PATCH] AA: ramips: use get_magic_long in sysupgrade image check Backport of r33842. Signed-off-by: Gabor Juhos SVN-Revision: 33871 --- target/linux/ramips/base-files/lib/upgrade/platform.sh | 4 ++-- 1 file 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 5ebf42a85d..2857599d0b 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 } -- 2.30.2