aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd/files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-04-09 14:33:11 +0000
committerJohn Crispin <john@openwrt.org>2015-04-09 14:33:11 +0000
commit093c341473df9b1248529cb2127306951c52a7bd (patch)
treee84e27cff13b2aa753d332289e78e92067b00614 /package/system/procd/files
parent5d8f9e03f15fb775e6cf7809052bbb7223268aa8 (diff)
downloadupstream-093c341473df9b1248529cb2127306951c52a7bd.tar.gz
upstream-093c341473df9b1248529cb2127306951c52a7bd.tar.bz2
upstream-093c341473df9b1248529cb2127306951c52a7bd.zip
procd: add helper for starting NAND sysupgrade
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45339
Diffstat (limited to 'package/system/procd/files')
-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
+}