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 | e7f7a8d1c5c5856557e02e7cfbed78c6790b3bfc (patch) | |
tree | 05c6c07bf4a8eae29b088db9f8aa08bf8cb44469 /package | |
parent | dc6e09ebfabb09a4f01950e6c52a5e6db0270e11 (diff) | |
download | upstream-e7f7a8d1c5c5856557e02e7cfbed78c6790b3bfc.tar.gz upstream-e7f7a8d1c5c5856557e02e7cfbed78c6790b3bfc.tar.bz2 upstream-e7f7a8d1c5c5856557e02e7cfbed78c6790b3bfc.zip |
procd: fix parsing of the has_env parameter
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42883 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-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 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 } |