ar71xx: fix sysupgrade for wnr2200
authorFelix Fietkau <nbd@openwrt.org>
Wed, 23 Dec 2015 23:42:18 +0000 (23:42 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 23 Dec 2015 23:42:18 +0000 (23:42 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48005

target/linux/ar71xx/base-files/lib/upgrade/platform.sh

index e8998f4c58df13c6112e92565610f29753248ed9..35398d5449c565d5e4d006ba9ad19415db1a4a92 100755 (executable)
@@ -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