Author: rmilecki Date: 2015-09-15 18:05:10 +0200 (Tue, 15 Sep 2015) New Revision: 46945
Modified: trunk/target/linux/ipq806x/base-files/lib/upgrade/platform.sh Log: 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?\197?\130 Mi?\197?\130ecki <[email protected]> Modified: trunk/target/linux/ipq806x/base-files/lib/upgrade/platform.sh =================================================================== --- trunk/target/linux/ipq806x/base-files/lib/upgrade/platform.sh 2015-09-15 16:05:03 UTC (rev 46944) +++ trunk/target/linux/ipq806x/base-files/lib/upgrade/platform.sh 2015-09-15 16:05:10 UTC (rev 46945) @@ -16,4 +16,15 @@ 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() _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
