ar71xx: fix sysupgrade for wnr2200
authorFelix Fietkau <nbd@openwrt.org>
Sun, 3 Jan 2016 15:12:07 +0000 (15:12 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 3 Jan 2016 15:12:07 +0000 (15:12 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48005

SVN-Revision: 48093

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

index ab69e4f8a1ffca2b3f7169d913efa5d877b3db67..8dea48f719d16ea4ba7b96e960bd2fa9df8440a6 100755 (executable)
@@ -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