ramips: add support for TP-Link RE350
[openwrt/openwrt.git] / target / linux / ramips / base-files / lib / upgrade / platform.sh
index 36469ca704cd177213b4cd2ac396f62ec2f9fedf..830e129115cb16d47a0f65d8c05d475b30440fa0 100755 (executable)
@@ -253,6 +253,13 @@ platform_check_image() {
                # these boards use metadata images
                return 0
                ;;
+       re350-v1)
+               [ "$magic" != "01000000" ] && {
+                       echo "Invalid image type."
+                       return 1
+               }
+               return 0
+               ;;
        ubnt-erx|\
        ubnt-erx-sfp)
                nand_do_platform_check "$board" "$1"