Skip to content

Instantly share code, notes, and snippets.

@chris-pcguy
Created July 13, 2023 18:26
Show Gist options
  • Select an option

  • Save chris-pcguy/7100b6886b8486861f6608e5a646edab to your computer and use it in GitHub Desktop.

Select an option

Save chris-pcguy/7100b6886b8486861f6608e5a646edab to your computer and use it in GitHub Desktop.
#!/bin/bash
set -eu
DEST="$1"
URL="$2"
mkdir -p "$DEST" ; cd "$DEST"
wget --bind-address=... -c "$URL"
mkdir -p iphone ; cd iphone
unzip ../$(basename $URL)
DMGNAME=*.dmg
####python3 /home/.../.../qemu-t8030-tools/bootstrap_scripts/asn1rdskdecode.py "$DMGNAME" "${DMGNAME}.out"
/home/.../.../qemu-t8030/build/qemu-img create -f raw nvme.1 32G
/home/.../.../qemu-t8030/build/qemu-img create -f raw nvme.2 8M
/home/.../.../qemu-t8030/build/qemu-img create -f raw nvme.3 128K
/home/.../.../qemu-t8030/build/qemu-img create -f raw nvme.4 8K
/home/.../.../qemu-t8030/build/qemu-img create -f raw nvram 8K
/home/.../.../qemu-t8030/build/qemu-img create -f raw nvme.6 4K
/home/.../.../qemu-t8030/build/qemu-img create -f raw nvme.7 1M
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment