|
|
|
@ -1000,15 +1000,10 @@ function get_netboot() { |
|
|
|
|
|
|
|
|
|
function get_netbsd() { |
|
|
|
|
local HASH="" |
|
|
|
|
local ISO="" |
|
|
|
|
local URL="" |
|
|
|
|
|
|
|
|
|
URL="https://cdn.netbsd.org/pub/NetBSD/NetBSD-${RELEASE}/images/" |
|
|
|
|
ISO="NetBSD-${RELEASE}-amd64.iso" |
|
|
|
|
local ISO="NetBSD-${RELEASE}-amd64.iso" |
|
|
|
|
local URL="https://cdn.netbsd.org/pub/NetBSD/NetBSD-${RELEASE}/images/" |
|
|
|
|
HASH=$(wget -q -O- "${URL}/MD5" | grep "${ISO}" | cut -d' ' -f4) |
|
|
|
|
web_get "${URL}/${ISO}" "${VM_PATH}" |
|
|
|
|
check_hash "${ISO}" "${HASH}" |
|
|
|
|
make_vm_config "${ISO}" |
|
|
|
|
echo "${URL}/${ISO} ${HASH}" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function get_nixos() { |
|
|
|
|