mediatek: add Linksys E8450 support
[openwrt/openwrt.git] / target / linux / mediatek / mt7622 / base-files / lib / upgrade / platform.sh
index 81444769433e2072d5e7d4a4c52c2d643505fc2a..95ac8b5657cd79417897fd860aa20438825b4452 100755 (executable)
@@ -10,6 +10,14 @@ platform_do_upgrade() {
        mediatek,mt7622,ubi)
                nand_do_upgrade "$1"
                ;;
+       linksys,e8450)
+               if grep -q mtdparts=slave /proc/cmdline; then
+                       PART_NAME=firmware2
+               else
+                       PART_NAME=firmware1
+               fi
+               default_do_upgrade "$1"
+               ;;
        *)
                default_do_upgrade "$1"
                ;;