ar71xx: add support for Netgear WNR2000v4
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / upgrade / platform.sh
index 6220f16a7ed079ef3ae128e0e99c605ea18b10ed..7a02e37d2279a1d212a80b62dd4879fbb66f0794 100755 (executable)
@@ -385,6 +385,14 @@ platform_check_image() {
                fi
                return 0
                ;;
+    wnr2000-v4)
+               [ "$magic_long" != "32303034" ] && {
+                       echo "Invalid image type."
+                       return 1
+               }
+               return 0
+               ;;
+
        esac
 
        echo "Sysupgrade is not yet supported on $board."