openwrtv3/target/linux/ipq806x/base-files/lib/upgrade/platform.sh
Jonas Gorski 25ce154605 ipq806x: fix sysupgrade for AP148
AP148 uses lowercase name as boardname, so we need to use this in
platform.sh as well.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 48304
2016-01-18 10:46:58 +00:00

30 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()