aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ar71xx')
-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 b3c61ef539..7ab3f5f2a1 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)