[][OpenWrt Dev][Add support for dual-boot on UBI devices]

[Description]
Add support for dual-boot on UBI devices
Currently supported on mt7986

[Release-log]
N/A

Change-Id: I32e0f744baaacd9bb094c0764ccfdb2048ad798b
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/6105794
diff --git a/target/linux/mediatek/mt7986/base-files/lib/upgrade/platform.sh b/target/linux/mediatek/mt7986/base-files/lib/upgrade/platform.sh
index 0c66f47..bd38b22 100644
--- a/target/linux/mediatek/mt7986/base-files/lib/upgrade/platform.sh
+++ b/target/linux/mediatek/mt7986/base-files/lib/upgrade/platform.sh
@@ -6,7 +6,7 @@
 
 	case "$board" in
 	*snand*)
-		nand_do_upgrade "$1"
+		ubi_do_upgrade "$1"
 		;;
 	*emmc*)
 		mtk_mmc_do_upgrade "$1"