diff options
author | Christian Lamparter <chunkeey@gmail.com> | 2016-11-20 03:33:03 +0100 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2017-03-22 09:45:18 +0100 |
commit | 93aa8604052305830ea6801f0b93ffe2f0d55721 (patch) | |
tree | 8b46bbc2eee4fb8c3af35fe3b22be29f42cd8adc /package/system/procd/files | |
parent | cc189c0b7fa015978b04bb663a75b1da726376b5 (diff) | |
download | upstream-93aa8604052305830ea6801f0b93ffe2f0d55721.tar.gz upstream-93aa8604052305830ea6801f0b93ffe2f0d55721.tar.bz2 upstream-93aa8604052305830ea6801f0b93ffe2f0d55721.zip |
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>
Diffstat (limited to 'package/system/procd/files')
-rw-r--r-- | package/system/procd/files/nand.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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" |