|
|
|
@ -1430,16 +1430,18 @@ function get_garuda() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function get_haiku() { |
|
|
|
|
local BASE="" |
|
|
|
|
local ISO="" |
|
|
|
|
local URL="" |
|
|
|
|
local HASH="" |
|
|
|
|
|
|
|
|
|
validate_release "releases_haiku" |
|
|
|
|
|
|
|
|
|
BASE=$(echo "${RELEASE}" | cut -d'-' -f1) |
|
|
|
|
URL="https://cdn.haiku-os.org/haiku-release/${BASE}" |
|
|
|
|
ISO="haiku-${RELEASE}-anyboot.iso" |
|
|
|
|
URL="https://cdn.haiku-os.org/haiku-release/$(echo $RELEASE | awk -F '-' '{print $1}')/${ISO}" |
|
|
|
|
HASH=$(wget -q -O- ${URL}.sha256 | grep "${ISO}" | cut -d' ' -f4) |
|
|
|
|
web_get "${URL}" "${VM_PATH}" |
|
|
|
|
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4) |
|
|
|
|
web_get "${URL}/${ISO}" "${VM_PATH}" |
|
|
|
|
check_hash "${ISO}" "${HASH}" |
|
|
|
|
make_vm_config "${ISO}" |
|
|
|
|
} |
|
|
|
|