Author: rmilecki Date: 2015-09-24 11:18:59 +0200 (Thu, 24 Sep 2015) New Revision: 47039
Modified: trunk/target/linux/oxnas/base-files/lib/upgrade/platform.sh Log: oxnas: add platform_pre_upgrade for sysupgrade We're in process of cleaning nand_do_platform_check. Currently it 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 all other targets making it finally possible to change nand_do_platform_check. Signed-off-by: Rafa?\197?\130 Mi?\197?\130ecki <[email protected]> Modified: trunk/target/linux/oxnas/base-files/lib/upgrade/platform.sh =================================================================== --- trunk/target/linux/oxnas/base-files/lib/upgrade/platform.sh 2015-09-24 09:18:47 UTC (rev 47038) +++ trunk/target/linux/oxnas/base-files/lib/upgrade/platform.sh 2015-09-24 09:18:59 UTC (rev 47039) @@ -15,6 +15,10 @@ return $? } +platform_pre_upgrade() { + nand_do_upgrade $1 +} + disable_watchdog() { killall watchdog ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && { _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
