aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-06-24 18:13:56 +0000
committerJohn Crispin <blogic@openwrt.org>2014-06-24 18:13:56 +0000
commitfd4f6d5215cc709a029dba9b5633b4890a838f6e (patch)
tree8f5b52aee311be8a92f6346f120d83a7267856a9 /package
parentf5d5de027c87968df75a8ca1728267304cb01f43 (diff)
downloadupstream-fd4f6d5215cc709a029dba9b5633b4890a838f6e.tar.gz
upstream-fd4f6d5215cc709a029dba9b5633b4890a838f6e.tar.bz2
upstream-fd4f6d5215cc709a029dba9b5633b4890a838f6e.zip
procd: fix nand.sh kernel_length typo
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@makrotopia.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41327 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/system/procd/files/nand.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/system/procd/files/nand.sh b/package/system/procd/files/nand.sh
index 09cc091d4f..78ac206f4a 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)"