procd: nand: make it possible to configure kernel and ubi partition

With this patch, the nand.sh script no longer overwrites
CI_KERNELPART and CI_UBIPART if they have been set before.

This allows platforms specify alternative values for these
variables.

Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
This commit is contained in:
Christian Lamparter 2016-11-20 03:33:03 +01:00 committed by John Crispin
parent cc189c0b7f
commit 93aa860405
1 changed files with 2 additions and 2 deletions

View File

@ -5,10 +5,10 @@
. /lib/functions.sh
# 'kernel' partition on NAND contains the kernel
CI_KERNPART="kernel"
CI_KERNPART="${CI_KERNPART:-kernel}"
# 'ubi' partition on NAND contains UBI
CI_UBIPART="ubi"
CI_UBIPART="${CI_UBIPART:-ubi}"
ubi_mknod() {
local dir="$1"