aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ipq806x')
-rw-r--r--target/linux/ipq806x/base-files/lib/upgrade/platform.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ipq806x/base-files/lib/upgrade/platform.sh b/target/linux/ipq806x/base-files/lib/upgrade/platform.sh
index 75a01b7d77..c0e19a1287 100644
--- a/target/linux/ipq806x/base-files/lib/upgrade/platform.sh
+++ b/target/linux/ipq806x/base-files/lib/upgrade/platform.sh
@@ -16,4 +16,15 @@ platform_check_image() {
esac
}
+platform_pre_upgrade() {
+ local board=$(ipq806x_board_name)
+
+ case "$board" in
+ AP148 |\
+ r7500)
+ nand_do_upgrade "$1"
+ ;;
+ esac
+}
+
# use default for platform_do_upgrade()