summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-05-10 13:54:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-05-10 13:54:25 +0000
commitb33752051f9ee0bb4d0f8a78e7cafd9bbc8fa1b7 (patch)
tree8250725a151d09e33a6e4dea2bb51a0dc10d69e3
parent4c5f965c741a10ad44aa4dcc32fa67868c673940 (diff)
downloadmtk-20170518-b33752051f9ee0bb4d0f8a78e7cafd9bbc8fa1b7.zip
mtk-20170518-b33752051f9ee0bb4d0f8a78e7cafd9bbc8fa1b7.tar.gz
mtk-20170518-b33752051f9ee0bb4d0f8a78e7cafd9bbc8fa1b7.tar.bz2
ar71xx: add platform_pre_upgrade for sysupgrade
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45667
-rwxr-xr-xtarget/linux/ar71xx/base-files/lib/upgrade/platform.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
index b3c61ef..7ab3f5f 100755
--- a/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ar71xx/base-files/lib/upgrade/platform.sh
@@ -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)