mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2024-08-14 22:46:53 +00:00
Refactor get_netbsd() to add create_vm() compatibility
This commit is contained in:
parent
c928d6caee
commit
68609f11e8
1 changed files with 3 additions and 8 deletions
11
quickget
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…
Reference in a new issue