2015-09-04 14:45:00 +00:00
|
|
|
. /lib/ipq806x.sh
|
|
|
|
|
|
|
|
PART_NAME=firmware
|
|
|
|
|
|
|
|
platform_check_image() {
|
|
|
|
local board=$(ipq806x_board_name)
|
|
|
|
|
|
|
|
case "$board" in
|
2016-01-18 10:46:58 +00:00
|
|
|
ap148 |\
|
2015-09-04 14:46:06 +00:00
|
|
|
r7500)
|
2015-09-04 14:45:00 +00:00
|
|
|
nand_do_platform_check $board $1
|
|
|
|
return $?;
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
return 1;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
2015-09-15 16:05:10 +00:00
|
|
|
platform_pre_upgrade() {
|
|
|
|
local board=$(ipq806x_board_name)
|
|
|
|
|
|
|
|
case "$board" in
|
2016-01-18 10:46:58 +00:00
|
|
|
ap148 |\
|
2015-09-15 16:05:10 +00:00
|
|
|
r7500)
|
|
|
|
nand_do_upgrade "$1"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
2015-09-04 14:45:00 +00:00
|
|
|
# use default for platform_do_upgrade()
|