From 5359183b7e5260ba6f3d983d6f3103e54afd62b4 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 23 Dec 2015 23:42:18 +0000 Subject: [PATCH] ar71xx: fix sysupgrade for wnr2200 Signed-off-by: Felix Fietkau SVN-Revision: 48005 --- target/linux/ar71xx/base-files/lib/upgrade/platform.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh index e8998f4c58d..35398d5449c 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 -- 2.30.2