diff options
| author | Felix Fietkau | 2014-10-12 15:51:33 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2014-10-12 15:51:33 +0000 |
| commit | ad2eb9392335b78dfea690fb75e0293b8d81298c (patch) | |
| tree | 44795a9b056330e4f0755aac47ec067dcf9aa8a9 | |
| parent | 56bab3adbd8577898ff8c904069ced85b7cccbc8 (diff) | |
| download | archive-ad2eb9392335b78dfea690fb75e0293b8d81298c.tar.gz | |
procd: fix parsing of the has_env parameter
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r42883
SVN-Revision: 42886
| -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 } |