aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-10-12 15:51:33 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-10-12 15:51:33 +0000
commitf5cba7f226087ebd62104ac9b507d9478aa15756 (patch)
tree44795a9b056330e4f0755aac47ec067dcf9aa8a9
parent410d8d0e4347d2fa03a7a5d2d225334fcb4cc8b8 (diff)
downloadupstream-f5cba7f226087ebd62104ac9b507d9478aa15756.tar.gz
upstream-f5cba7f226087ebd62104ac9b507d9478aa15756.tar.bz2
upstream-f5cba7f226087ebd62104ac9b507d9478aa15756.zip
procd: fix parsing of the has_env parameter
Signed-off-by: Felix Fietkau <nbd@openwrt.org> Backport of r42883 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@42886 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 4aa56e37ae..4894b81f79 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
}