If size doesn't match, error and quit

This commit is contained in:
computermouth 2016-12-01 16:39:53 -08:00
parent 1f6a5f22d6
commit 53d7eedf72

View File

@ -49,9 +49,12 @@ prepare_ubi() {
elif [ "$osize" = "500" ]; then
#TOSH_4GB_MLC
volspec="vol_size=3584MiB"
else
elif [ "$osize" = "680" ];
#HYNI_8GB_MLC
volspec="vol_size=7168MiB"
else
echo "Unable to acquire appropriate volume size or flags, quitting!"
exit 1
fi
mkdir -p $rootfs