aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-03 15:12:07 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-03 15:12:07 +0000
commit841bc905282feea1acae969e5b4ee9de9fd34402 (patch)
treebd5b97ec13070ef20e2d829d7d3556fe88ce03f8 /target/linux
parenta5db0b71c6792cbbd28540e6ef243dfd1c7104ff (diff)
downloadupstream-841bc905282feea1acae969e5b4ee9de9fd34402.tar.gz
upstream-841bc905282feea1acae969e5b4ee9de9fd34402.tar.bz2
upstream-841bc905282feea1acae969e5b4ee9de9fd34402.zip
ar71xx: fix sysupgrade for wnr2200
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r48005 git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48093 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-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 ab69e4f8a1..8dea48f719 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -447,13 +447,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