From 41363b1ecb4dac138b414675246dd85dc7f086d1 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 12 Oct 2014 15:50:01 +0000 Subject: [PATCH] procd: fix parsing of the has_env parameter Signed-off-by: Felix Fietkau SVN-Revision: 42883 --- package/system/procd/files/nand.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/system/procd/files/nand.sh b/package/system/procd/files/nand.sh index 4aa56e37ae5f..4894b81f7982 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 } -- 2.30.2