Author: blogic Date: 2014-06-24 20:13:56 +0200 (Tue, 24 Jun 2014) New Revision: 41327
Modified: trunk/package/system/procd/files/nand.sh Log: 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 <[email protected]> Modified: trunk/package/system/procd/files/nand.sh =================================================================== --- trunk/package/system/procd/files/nand.sh 2014-06-24 18:13:51 UTC (rev 41326) +++ trunk/package/system/procd/files/nand.sh 2014-06-24 18:13:56 UTC (rev 41327) @@ -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 @@ [ "$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)" _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
