curl -s -jkLf -r-4096 $IMAGE_URL | xz -dc | grep ^match -B2 -A7 || echo NOT_OKAY
IMAGE_URL=http://dl.khadas.com/.images/vim3l/vim3l-android-9-64bit-v230130.raw.img.xz curl -s -jkLf -r-4096 IMAGE_URL | xz -dc | grep ^match -B2 -A7 && echo OKAY