diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-11-30 18:31:04 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-11-30 18:31:04 +0000 |
commit | 6ad568902e590d5e58dc78383ba7dc7125b213c5 (patch) | |
tree | 0a72890e52becba527ef12e9c959442cabee0d31 /target/linux/ar71xx/base-files/lib | |
parent | 1fa75d430a5c042e50478c02dfdd6d107a99c040 (diff) | |
download | mtk-20170518-6ad568902e590d5e58dc78383ba7dc7125b213c5.zip mtk-20170518-6ad568902e590d5e58dc78383ba7dc7125b213c5.tar.gz mtk-20170518-6ad568902e590d5e58dc78383ba7dc7125b213c5.tar.bz2 |
ar71xx: use cybertan_check_image for image verification on the WRT160NL
That function provides a slightly improved sanity check than the
currently used solution.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 38967
Diffstat (limited to 'target/linux/ar71xx/base-files/lib')
-rwxr-xr-x | target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index 9d42404..b5a7da7 100755 --- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh +++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh @@ -171,7 +171,8 @@ platform_check_image() { dir825b_check_image "$1" && return 0 ;; - mynet-rext) + mynet-rext|\ + wrt160nl) cybertan_check_image "$1" && return 0 return 1 ;; @@ -275,13 +276,6 @@ platform_check_image() { } return 0 ;; - wrt160nl) - [ "$magic" != "4e4c" ] && { - echo "Invalid image type." - return 1 - } - return 0 - ;; routerstation | \ routerstation-pro | \ ls-sr71 | \ |