ar71xx: add platform_pre_upgrade for sysupgrade

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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45667 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2015-05-10 13:54:25 +00:00
parent 9612e0890d
commit beecdd63b3
1 changed files with 13 additions and 0 deletions

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)