ar71xx: add platform_pre_upgrade for sysupgrade

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

SVN-Revision: 45667
This commit is contained in:
Felix Fietkau 2015-05-10 13:54:25 +00:00
parent 4c5f965c74
commit b33752051f

View file

@ -448,6 +448,19 @@ platform_check_image() {
return 1
}
platform_pre_upgrade() {
local board=$(ar71xx_board_name)
case "$board" in
nbg6716 | \
r6100 | \
wndr3700v4 | \
wndr4300 )
nand_do_upgrade "$1"
;;
esac
}
platform_do_upgrade() {
local board=$(ar71xx_board_name)