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-a3cf2f4a3e73master
parent
9612e0890d
commit
beecdd63b3
|
@ -448,6 +448,19 @@ platform_check_image() {
|
||||||
return 1
|
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() {
|
platform_do_upgrade() {
|
||||||
local board=$(ar71xx_board_name)
|
local board=$(ar71xx_board_name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue