aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd/files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2014-06-24 18:13:56 +0000
committerJohn Crispin <john@openwrt.org>2014-06-24 18:13:56 +0000
commit9b714b6e7b227eb28016f2f1734619a98a83c987 (patch)
treef0ee8c723bbd13894f8bdb3f49308106e4fab514 /package/system/procd/files
parent22a35a7b1171cd8ffa50675df1011fae0a3b94e5 (diff)
downloadupstream-9b714b6e7b227eb28016f2f1734619a98a83c987.tar.gz
upstream-9b714b6e7b227eb28016f2f1734619a98a83c987.tar.bz2
upstream-9b714b6e7b227eb28016f2f1734619a98a83c987.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> SVN-Revision: 41327
Diffstat (limited to 'package/system/procd/files')
-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)"