From: Christian Lamparter Date: Sun, 20 Nov 2016 02:33:03 +0000 (+0100) Subject: procd: nand: make it possible to configure kernel and ubi partition X-Git-Tag: v18.06.0-rc1~3276 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=93aa86040523;p=oweals%2Fopenwrt.git 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 --- diff --git a/package/system/procd/files/nand.sh b/package/system/procd/files/nand.sh index ebaaf2aa16..01dba61644 100644 --- a/package/system/procd/files/nand.sh +++ b/package/system/procd/files/nand.sh @@ -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"