# stage2 directly but need to refactor nand_upgrade_success
# for this to work.
# Also the nand functions don't allow url to be used
- nand_do_upgrade $1
-}
-platform_nand_pre_upgrade() {
local board=$(board_name)
case "$board" in
echo "Upgrading partition $CI_UBIPART (/dev/mtd$(find_mtd_index $CI_UBIPART))"
;;
esac
+
+ nand_do_upgrade $1
}