[OpenWrt-Devel] [PATCH 2/2] procd: fix nand.sh kernel_length typo

Daniel Golle daniel at makrotopia.org
Fri Jun 20 13:25:34 EDT 2014


sysupgrade otherwise skips kernel part on devices which got
kernel in ubi due to kern_length being undefined, kernel_length
is being used instead.

Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 package/system/procd/files/nand.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/system/procd/files/nand.sh b/package/system/procd/files/nand.sh
index 09cc091..78ac206 100644
--- a/package/system/procd/files/nand.sh
+++ b/package/system/procd/files/nand.sh
@@ -4,7 +4,7 @@
 
 . /lib/functions.sh
 
-# 'data' partition on NAND contains UBI
+# 'ubi' partition on NAND contains UBI
 CI_UBIPART="ubi"
 
 nand_find_volume() {
@@ -242,7 +242,7 @@ nand_upgrade_tar() {
 	[ "$has_kernel" = "1" ] && {
 		local kern_ubivol="$(nand_find_volume $ubidev kernel)"
 	 	tar xf $tar_file sysupgrade-$board_name/kernel -O | \
-			ubiupdatevol /dev/$kern_ubivol -s $kern_length -
+			ubiupdatevol /dev/$kern_ubivol -s $kernel_length -
 	}
 
 	local root_ubivol="$(nand_find_volume $ubidev rootfs)"
-- 
1.9.3
_______________________________________________
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