From ce7f25066b1f7b810e34222b1458c399444edce2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Thu, 24 Sep 2015 09:18:59 +0000 Subject: [PATCH] oxnas: add platform_pre_upgrade for sysupgrade MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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ł Miłecki SVN-Revision: 47039 --- target/linux/oxnas/base-files/lib/upgrade/platform.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target/linux/oxnas/base-files/lib/upgrade/platform.sh b/target/linux/oxnas/base-files/lib/upgrade/platform.sh index a43391cbbd..006dd0d134 100644 --- a/target/linux/oxnas/base-files/lib/upgrade/platform.sh +++ b/target/linux/oxnas/base-files/lib/upgrade/platform.sh @@ -15,6 +15,10 @@ platform_check_image() { return $? } +platform_pre_upgrade() { + nand_do_upgrade $1 +} + disable_watchdog() { killall watchdog ( ps | grep -v 'grep' | grep '/dev/watchdog' ) && { -- 2.30.2