summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-10-12 15:50:01 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-10-12 15:50:01 +0000
commit41363b1ecb4dac138b414675246dd85dc7f086d1 (patch)
treeec9afdb420adbd0536725a604a28d22c2ebf4484
parent2e9157a866fb08b3606f30e70d47c8d1ed6d0f84 (diff)
downloadmtk-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
-rw-r--r--package/system/procd/files/nand.sh2
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
}