summaryrefslogtreecommitdiff
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
parent5d8f9e03f15fb775e6cf7809052bbb7223268aa8 (diff)
downloadmtk-20170518-093c341473df9b1248529cb2127306951c52a7bd.zip
mtk-20170518-093c341473df9b1248529cb2127306951c52a7bd.tar.gz
mtk-20170518-093c341473df9b1248529cb2127306951c52a7bd.tar.bz2
procd: add helper for starting NAND sysupgrade
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 45339
-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 7fb9343..0ed1b63 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
+}