From c0ef52d2e8f3943308b604ec5b572a1fff0fb998 Mon Sep 17 00:00:00 2001 From: computermouth Date: Thu, 1 Dec 2016 16:30:55 -0800 Subject: [PATCH] Check hex value instead of string --- chip-create-nand-images.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chip-create-nand-images.sh b/chip-create-nand-images.sh index d1e37b4..fbe76fb 100755 --- a/chip-create-nand-images.sh +++ b/chip-create-nand-images.sh @@ -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