openwrt/target/linux/oxnas/base-files/lib/upgrade/platform.sh
Mathias Kresin 188328111b treewide: move nand_do_upgrade call to platform_do_upgrade
Calling nand_do_upgrade() from platform_pre_upgrade() was deprecated
with 30f61a34b4 ("base-files: always use staged sysupgrade").

Update the platform upgrade code to use platform_do_upgrade() for NAND
images as well.

Signed-off-by: Mathias Kresin <dev@kresin.me>
2018-02-16 14:44:02 +01:00

19 lines
243 B
Bash

#
# Copyright (C) 2014 OpenWrt.org
#
REQUIRE_IMAGE_METADATA=1
platform_check_image() {
local board=$(board_name)
[ "$ARGC" -gt 1 ] && return 1
nand_do_platform_check $board $1
return $?
}
platform_do_upgrade() {
nand_do_upgrade $1
}