#!/bin/sh

VERS="14.1"
VERO="13.3"

mkdir -p freebsd
cd freebsd

# 最新
odl -p https://download.freebsd.org/releases/amd64/amd64/ISO-IMAGES/${VERS}/FreeBSD-${VERS}-RELEASE-amd64-memstick.img.xz
odl -p https://download.freebsd.org/releases/amd64/amd64/ISO-IMAGES/${VERS}/FreeBSD-${VERS}-RELEASE-amd64-disc1.iso.xz
odl -p https://download.freebsd.org/releases/i386/i386/ISO-IMAGES/${VERS}/FreeBSD-${VERS}-RELEASE-i386-memstick.img.xz
odl -p https://download.freebsd.org/releases/i386/i386/ISO-IMAGES/${VERS}/FreeBSD-${VERS}-RELEASE-i386-disc1.iso.xz
odl -p https://download.freebsd.org/releases/powerpc/powerpc/ISO-IMAGES/${VERS}/FreeBSD-${VERS}-RELEASE-powerpc-disc1.iso.xz
odl -p https://download.freebsd.org/releases/powerpc/powerpc64/ISO-IMAGES/${VERS}/FreeBSD-${VERS}-RELEASE-powerpc-powerpc64-disc1.iso.xz
odl -p https://download.freebsd.org/releases/powerpc/powerpc64le/ISO-IMAGES/${VERS}/FreeBSD-${VERS}-RELEASE-powerpc-powerpc64le-disc1.iso.xz
odl -p https://download.freebsd.org/releases/powerpc/powerpc64pe/ISO-IMAGES/${VERS}/FreeBSD-${VERS}-RELEASE-powerpc-powerpc64le-disc1.iso.xz
odl -p https://download.freebsd.org/releases/riscv/riscv64/ISO-IMAGES/${VERS}/FreeBSD-${VERS}-RELEASE-riscv-riscv64-memstick.img.xz
odl -p https://download.freebsd.org/releases/riscv/riscv64/ISO-IMAGES/${VERS}/FreeBSD-${VERS}-RELEASE-riscv-riscv64-disc1.iso.xz
odl -p https://download.freebsd.org/releases/arm64/aarch64/ISO-IMAGES/${VERS}/FreeBSD-${VERS}-RELEASE-arm64-aarch64-memstick.img.xz
odl -p https://download.freebsd.org/releases/arm64/aarch64/ISO-IMAGES/${VERS}/FreeBSD-${VERS}-RELEASE-aarch64-disc1.iso.xz

# LTS
odl -p https://download.freebsd.org/releases/amd64/amd64/ISO-IMAGES/${VERO}/FreeBSD-${VERO}-RELEASE-amd64-memstick.img.xz
odl -p https://download.freebsd.org/releases/amd64/amd64/ISO-IMAGES/${VERO}/FreeBSD-${VERO}-RELEASE-amd64-disc1.iso.xz
odl -p https://download.freebsd.org/releases/i386/i386/ISO-IMAGES/${VERO}/FreeBSD-${VERO}-RELEASE-i386-memstick.img.xz
odl -p https://download.freebsd.org/releases/i386/i386/ISO-IMAGES/${VERO}/FreeBSD-${VERO}-RELEASE-i386-disc1.iso.xz
odl -p https://download.freebsd.org/releases/powerpc/powerpc/ISO-IMAGES/${VERO}/FreeBSD-${VERO}-RELEASE-powerpc-disc1.iso.xz
odl -p https://download.freebsd.org/releases/powerpc/powerpc64/ISO-IMAGES/${VERO}/FreeBSD-${VERO}-RELEASE-powerpc-powerpc64-disc1.iso.xz
odl -p https://download.freebsd.org/releases/powerpc/powerpc64le/ISO-IMAGES/${VERO}/FreeBSD-${VERO}-RELEASE-powerpc-powerpc64-disc1.iso.xz
odl -p https://download.freebsd.org/releases/powerpc/powerpc64pe/ISO-IMAGES/${VERO}/FreeBSD-${VERO}-RELEASE-powerpc-powerpc64-disc1.iso.xz
odl -p https://download.freebsd.org/releases/riscv/riscv64/ISO-IMAGES/${VERO}/FreeBSD-${VERO}-RELEASE-riscv-riscv64-memstick.img.xz
odl -p https://download.freebsd.org/releases/riscv/riscv64/ISO-IMAGES/${VERO}/FreeBSD-${VERO}-RELEASE-riscv-riscv64-disc1.iso.xz
odl -p https://download.freebsd.org/releases/arm64/aarch64/ISO-IMAGES/${VERO}/FreeBSD-${VERO}-RELEASE-arm64-aarch64-memstick.img.xz
odl -p https://download.freebsd.org/releases/arm64/aarch64/ISO-IMAGES/${VERO}/FreeBSD-${VERO}-RELEASE-arm64-aarch64-disc1.iso.xz

cd ..
