From: John Crispin Date: Thu, 9 Apr 2015 14:33:11 +0000 (+0000) Subject: procd: add helper for starting NAND sysupgrade X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=093c341473df9b1248529cb2127306951c52a7bd;p=openwrt%2Fstaging%2Fadrian.git procd: add helper for starting NAND sysupgrade Signed-off-by: Rafał Miłecki SVN-Revision: 45339 --- diff --git a/package/system/procd/files/nand.sh b/package/system/procd/files/nand.sh index 7fb9343c95..0ed1b632d5 100644 --- a/package/system/procd/files/nand.sh +++ b/package/system/procd/files/nand.sh @@ -353,3 +353,12 @@ nand_do_platform_check() { return 0 } + +# Start NAND upgrade process +# +# $(1): file to be used for upgrade +nand_do_upgrade() { + echo -n $1 > /tmp/sysupgrade-nand-path + cp /sbin/upgraded /tmp/ + nand_upgrade_stage1 +}