mediatek: filogic: add support for Ubiquiti UniFi 6 Plus (U6+)
[openwrt/staging/jow.git] / target / linux / mediatek / filogic / base-files / lib / upgrade / platform.sh
index 005d4a70e97da11ca27bb88dc533d8c119dbceb0..6155ddab72687f6863eb63701b3a19c430c9e2ab 100755 (executable)
@@ -88,6 +88,11 @@ platform_do_upgrade() {
                CI_UBIPART="ubi0"
                nand_do_upgrade "$1"
                ;;
+       ubnt,unifi-6-plus)
+               CI_KERNPART="kernel0"
+               EMMC_ROOT_DEV="$(cmdline_get_var root)"
+               emmc_do_upgrade "$1"
+               ;;
        h3c,magic-nx30-pro|\
        mediatek,mt7981-rfb|\
        qihoo,360t7|\
@@ -145,6 +150,9 @@ platform_copy_config() {
                        ;;
                esac
                ;;
+       ubnt,unifi-6-plus)
+               emmc_copy_config
+               ;;
        esac
 }