aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-12-23 23:42:18 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-12-23 23:42:18 +0000
commitd7c76d4e38374e002aad4732af17d7fc39cf3bbf (patch)
tree673dabbcf3475df0216cbfcd5947e38362409962 /target
parent1ef14dcfe9875a255127450281e103bc235e5564 (diff)
downloadmaster-187ad058-d7c76d4e38374e002aad4732af17d7fc39cf3bbf.tar.gz
master-187ad058-d7c76d4e38374e002aad4732af17d7fc39cf3bbf.tar.bz2
master-187ad058-d7c76d4e38374e002aad4732af17d7fc39cf3bbf.zip
ar71xx: fix sysupgrade for wnr2200
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48005 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index e8998f4c58..35398d5449 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -479,13 +479,20 @@ platform_check_image() {
fi
return 0
;;
- wnr2000-v4)
+ wnr2000-v4)
[ "$magic_long" != "32303034" ] && {
echo "Invalid image type."
return 1
}
return 0
;;
+ wnr2200)
+ [ "$magic_long" != "32323030" ] && {
+ echo "Invalid image type."
+ return 1
+ }
+ return 0
+ ;;
esac