mirror of
https://github.com/openwrt/openwrt.git
synced 2025-02-09 04:12:15 +00:00
procd: fix parsing of the has_env parameter
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 42883
This commit is contained in:
parent
2e9157a866
commit
41363b1ecb
@ -122,7 +122,7 @@ nand_upgrade_prepare_ubi() {
|
|||||||
ubiattach -m "$mtdnum"
|
ubiattach -m "$mtdnum"
|
||||||
sync
|
sync
|
||||||
ubidev="$( nand_find_ubi "$CI_UBIPART" )"
|
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 0 -N ubootenv -s 1MiB
|
||||||
ubimkvol /dev/$ubidev -n 1 -N ubootenv2 -s 1MiB
|
ubimkvol /dev/$ubidev -n 1 -N ubootenv2 -s 1MiB
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user