Refactor get_netbsd() to add create_vm() compatibility

pull/388/head
Martin Wimpress 3 years ago
parent c928d6caee
commit 68609f11e8
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
  1. 11
      quickget

@ -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() {

Loading…
Cancel
Save