Check hex value instead of string
This commit is contained in:
parent
07b178d1b8
commit
c0ef52d2e8
@ -43,10 +43,10 @@ prepare_ubi() {
|
|||||||
lebsize=$((eraseblocksize-pagesize*2))
|
lebsize=$((eraseblocksize-pagesize*2))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$oobsize" = "100" ]; then
|
if [ "$osize" = "100" ]; then
|
||||||
#TOSH_512_SLC
|
#TOSH_512_SLC
|
||||||
volspec="vol_flags=autoresize"
|
volspec="vol_flags=autoresize"
|
||||||
elif [ "$oobsize" = "500" ]; then
|
elif [ "$osize" = "500" ]; then
|
||||||
#TOSH_4GB_MLC
|
#TOSH_4GB_MLC
|
||||||
volspec="vol_size=3584MiB"
|
volspec="vol_size=3584MiB"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user