diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-12-23 23:42:18 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-12-23 23:42:18 +0000 |
commit | 5359183b7e5260ba6f3d983d6f3103e54afd62b4 (patch) | |
tree | 50cc7f59e7e7121df14a81a90f01c4f093ce83c1 /target/linux/ar71xx/base-files/lib | |
parent | c75c8ab6a637831425f2bc0610231a1afc8168de (diff) | |
download | upstream-5359183b7e5260ba6f3d983d6f3103e54afd62b4.tar.gz upstream-5359183b7e5260ba6f3d983d6f3103e54afd62b4.tar.bz2 upstream-5359183b7e5260ba6f3d983d6f3103e54afd62b4.zip |
ar71xx: fix sysupgrade for wnr2200
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48005
Diffstat (limited to 'target/linux/ar71xx/base-files/lib')
-rwxr-xr-x | target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 9 |
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 |