diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-10-12 15:50:01 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-10-12 15:50:01 +0000 |
commit | 41363b1ecb4dac138b414675246dd85dc7f086d1 (patch) | |
tree | ec9afdb420adbd0536725a604a28d22c2ebf4484 /package/system/procd/files | |
parent | 2e9157a866fb08b3606f30e70d47c8d1ed6d0f84 (diff) | |
download | mtk-20170518-41363b1ecb4dac138b414675246dd85dc7f086d1.zip mtk-20170518-41363b1ecb4dac138b414675246dd85dc7f086d1.tar.gz mtk-20170518-41363b1ecb4dac138b414675246dd85dc7f086d1.tar.bz2 |
procd: fix parsing of the has_env parameter
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42883
Diffstat (limited to 'package/system/procd/files')
-rw-r--r-- | package/system/procd/files/nand.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/system/procd/files/nand.sh b/package/system/procd/files/nand.sh index 4aa56e3..4894b81 100644 --- a/package/system/procd/files/nand.sh +++ b/package/system/procd/files/nand.sh @@ -122,7 +122,7 @@ nand_upgrade_prepare_ubi() { ubiattach -m "$mtdnum" sync ubidev="$( nand_find_ubi "$CI_UBIPART" )" - [ -z "$has_env" ] || { + [ "$has_env" -gt 0 ] && { ubimkvol /dev/$ubidev -n 0 -N ubootenv -s 1MiB ubimkvol /dev/$ubidev -n 1 -N ubootenv2 -s 1MiB } |