aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-11-30 18:31:04 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-11-30 18:31:04 +0000
commitc60266575f85e070b83f00c52dd5983a593cc6e5 (patch)
tree45c5b8edbfde740b0a56bafa7244971b2cd4d4e8 /target/linux/ar71xx
parentab8e78cbee8630171a93a25fb9811509ff07af94 (diff)
downloadupstream-c60266575f85e070b83f00c52dd5983a593cc6e5.tar.gz
upstream-c60266575f85e070b83f00c52dd5983a593cc6e5.tar.bz2
upstream-c60266575f85e070b83f00c52dd5983a593cc6e5.zip
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38967 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh10
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 9d42404ac2..b5a7da7d6a 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 | \