[OpenWrt-Devel] [PATCH 2/2] procd: add helper for starting NAND sysupgrade

Rafał Miłecki zajec5 at gmail.com
Wed Apr 8 17:35:06 EDT 2015


Signed-off-by: Rafał Miłecki <zajec5 at gmail.com>
---
 package/system/procd/files/nand.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

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
+}
-- 
1.8.4.5
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list