projects
/
openwrt
/
staging
/
yousong.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e9157a
)
procd: fix parsing of the has_env parameter
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 12 Oct 2014 15:50:01 +0000
(15:50 +0000)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 12 Oct 2014 15:50:01 +0000
(15:50 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 42883
package/system/procd/files/nand.sh
patch
|
blob
|
history
diff --git
a/package/system/procd/files/nand.sh
b/package/system/procd/files/nand.sh
index 4aa56e37ae5fd7979d8ed3d1d38e6b97a6a852e8..4894b81f79827cafe0deeb822192c111a3140bae 100644
(file)
--- 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
}