aboutsummaryrefslogtreecommitdiffstats
path: root/package/system
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-04-09 14:33:11 +0000
committerJohn Crispin <blogic@openwrt.org>2015-04-09 14:33:11 +0000
commit5f6d177a9e24ced4d8d5f5a1a06bb0fc7da161f6 (patch)
tree5e0626d62db4d81edb16de40cea1968f42eb9abb /package/system
parent321c5f3362f03a60709dd3c7ad5b4fc0f1036e4b (diff)
downloadupstream-5f6d177a9e24ced4d8d5f5a1a06bb0fc7da161f6.tar.gz
upstream-5f6d177a9e24ced4d8d5f5a1a06bb0fc7da161f6.tar.bz2
upstream-5f6d177a9e24ced4d8d5f5a1a06bb0fc7da161f6.zip
procd: add helper for starting NAND sysupgrade
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45339 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/system')
-rw-r--r--package/system/procd/files/nand.sh9
1 files changed, 9 insertions, 0 deletions
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
+}