diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-09-15 16:05:10 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2015-09-15 16:05:10 +0000 |
commit | ceeb8b81b5861a55ab82afe9940673a44b75cfba (patch) | |
tree | 944864d8bbf657f570b3dc3150a4ae6602bf7132 /target/linux | |
parent | 8afbff350f6fc2fce5466652a778995ac73c0aa3 (diff) | |
download | master-187ad058-ceeb8b81b5861a55ab82afe9940673a44b75cfba.tar.gz master-187ad058-ceeb8b81b5861a55ab82afe9940673a44b75cfba.tar.bz2 master-187ad058-ceeb8b81b5861a55ab82afe9940673a44b75cfba.zip |
ipq806x: add platform_pre_upgrade for sysupgrade
We're in process of cleaning nand_do_platform_check. Currently is leaves
a special mark in /tmp/sysupgrade-nand-path triggering some diffent code
path in nand_upgrade_stage1. This can be a bit confusing.
The plan is to have the check function only check the image and nothing
else. Then platform code (platform_pre_upgrade) should trigger NAND
specific upgrade path. This is what this patch implements.
This follows ar71xx, lantiq and partially bcm53xx.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46945 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ipq806x/base-files/lib/upgrade/platform.sh | 11 |
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() |