Check hex value instead of string

This commit is contained in:
computermouth 2016-12-01 16:30:55 -08:00
parent 07b178d1b8
commit c0ef52d2e8
1 changed files with 2 additions and 2 deletions

View File

@ -43,10 +43,10 @@ prepare_ubi() {
lebsize=$((eraseblocksize-pagesize*2))
fi
if [ "$oobsize" = "100" ]; then
if [ "$osize" = "100" ]; then
#TOSH_512_SLC
volspec="vol_flags=autoresize"
elif [ "$oobsize" = "500" ]; then
elif [ "$osize" = "500" ]; then
#TOSH_4GB_MLC
volspec="vol_size=3584MiB"
else