|
|
@ -70,8 +70,8 @@ function releases_elementary() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function releases_freebsd(){ |
|
|
|
function releases_freebsd(){ |
|
|
|
echo 12_2 \ |
|
|
|
echo 12.2 \ |
|
|
|
13_0 |
|
|
|
13.0 |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function releases_fedora(){ |
|
|
|
function releases_fedora(){ |
|
|
@ -487,23 +487,20 @@ function get_elementary() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function get_freebsd() { |
|
|
|
function get_freebsd() { |
|
|
|
# For future releases, use dvd1 iso files. |
|
|
|
local ISO="" |
|
|
|
|
|
|
|
local RELEASES="" |
|
|
|
local URL="" |
|
|
|
local URL="" |
|
|
|
local DL_BASE="https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES" |
|
|
|
|
|
|
|
local VERSION="" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case ${RELEASE} in |
|
|
|
RELEASES=$(releases_freebsd) |
|
|
|
12_2|13_0) VERSION=${RELEASE//_/.};; |
|
|
|
if [[ "${RELEASES}" != *"${RELEASE}"* ]]; then |
|
|
|
*) |
|
|
|
|
|
|
|
echo "ERROR! FreeBSD ${RELEASE} is not a supported release." |
|
|
|
echo "ERROR! FreeBSD ${RELEASE} is not a supported release." |
|
|
|
releases_freebsd |
|
|
|
echo "${RELEASES}" |
|
|
|
exit 1 |
|
|
|
exit 1 |
|
|
|
;; |
|
|
|
fi |
|
|
|
esac |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
URL="${DL_BASE}/${VERSION}/FreeBSD-${VERSION}-RELEASE-amd64-dvd1.iso" |
|
|
|
ISO="FreeBSD-${RELEASE}-RELEASE-amd64-dvd1.iso" |
|
|
|
|
|
|
|
URL="https://download.freebsd.org/ftp/releases/amd64/amd64/ISO-IMAGES/${RELEASE}/${ISO}" |
|
|
|
|
|
|
|
|
|
|
|
ISO="FreeBSD-${VERSION}-RELEASE-amd64-dvd1.iso" |
|
|
|
|
|
|
|
make_vm_dir |
|
|
|
make_vm_dir |
|
|
|
web_get "${URL}" "${VM_PATH}" |
|
|
|
web_get "${URL}" "${VM_PATH}" |
|
|
|
make_vm_config "${ISO}" |
|
|
|
make_vm_config "${ISO}" |
|
|
|