diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-10-18 07:23:00 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-10-18 07:23:00 +0000 |
commit | 888f80c6f91a9b64b012c1581054d20212d7ea8b (patch) | |
tree | fadc04f099530bdc5dd68952a1f0e71d9ad0fb15 /target | |
parent | 2315eab15e9b66c79c603bc7e130d61a37c858a9 (diff) | |
download | master-187ad058-888f80c6f91a9b64b012c1581054d20212d7ea8b.tar.gz master-187ad058-888f80c6f91a9b64b012c1581054d20212d7ea8b.tar.bz2 master-187ad058-888f80c6f91a9b64b012c1581054d20212d7ea8b.zip |
ramips: use get_magic_long in sysupgrade image check
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33842 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-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 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 } |