diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2015-09-24 09:18:59 +0000 |
---|---|---|
committer | Rafał Miłecki <zajec5@gmail.com> | 2015-09-24 09:18:59 +0000 |
commit | 92ec6d1abeedd4975415d99d9b40cf7837469a71 (patch) | |
tree | 3a05aa367a6d33cca343406f2bcf24ce7809db02 /target/linux/oxnas | |
parent | edf1b0efa85bd3e2d45cddf02b08421764b5c3c4 (diff) | |
download | master-187ad058-92ec6d1abeedd4975415d99d9b40cf7837469a71.tar.gz master-187ad058-92ec6d1abeedd4975415d99d9b40cf7837469a71.tar.bz2 master-187ad058-92ec6d1abeedd4975415d99d9b40cf7837469a71.zip |
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ł Miłecki <zajec5@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47039 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/oxnas')
-rw-r--r-- | target/linux/oxnas/base-files/lib/upgrade/platform.sh | 4 |
1 files changed, 4 insertions, 0 deletions
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' ) && { |