From: Felix Fietkau Date: Sun, 12 Oct 2014 15:51:33 +0000 (+0000) Subject: procd: fix parsing of the has_env parameter X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=ad2eb9392335b78dfea690fb75e0293b8d81298c;p=openwrt%2Fsvn-archive%2Farchive.git procd: fix parsing of the has_env parameter Signed-off-by: Felix Fietkau Backport of r42883 SVN-Revision: 42886 --- 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 }