mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 08:51:13 +00:00
ffcb268437
We're in process of cleaning nand_do_platform_check. Currently is leaves a special mark in /tmp/sysupgrade-nand-path triggering some diffent code path in nand_upgrade_stage1. This can be a bit confusing. The plan is to have the check function only check the image and nothing else. Then platform code (platform_pre_upgrade) should trigger NAND specific upgrade path. This is what this patch implements. This follows ar71xx, lantiq and partially bcm53xx. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 46945
31 lines
388 B
Bash
31 lines
388 B
Bash
. /lib/ipq806x.sh
|
|
|
|
PART_NAME=firmware
|
|
|
|
platform_check_image() {
|
|
local board=$(ipq806x_board_name)
|
|
|
|
case "$board" in
|
|
AP148 |\
|
|
r7500)
|
|
nand_do_platform_check $board $1
|
|
return $?;
|
|
;;
|
|
*)
|
|
return 1;
|
|
esac
|
|
}
|
|
|
|
platform_pre_upgrade() {
|
|
local board=$(ipq806x_board_name)
|
|
|
|
case "$board" in
|
|
AP148 |\
|
|
r7500)
|
|
nand_do_upgrade "$1"
|
|
;;
|
|
esac
|
|
}
|
|
|
|
# use default for platform_do_upgrade()
|