|
|
@ -304,10 +304,15 @@ function releases_gentoo(){ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function releases_haiku() { |
|
|
|
function releases_haiku() { |
|
|
|
echo r1beta3-x86_64 \ |
|
|
|
echo r1beta3 |
|
|
|
r1beta3-x86_gcc2h |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function editions_haiku() { |
|
|
|
|
|
|
|
echo x86_64 \ |
|
|
|
|
|
|
|
x86_gcc2h |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function releases_kali() { |
|
|
|
function releases_kali() { |
|
|
|
echo latest \ |
|
|
|
echo latest \ |
|
|
|
weekly |
|
|
|
weekly |
|
|
@ -935,14 +940,17 @@ function get_gentoo() { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function get_haiku() { |
|
|
|
function get_haiku() { |
|
|
|
local BASE="" |
|
|
|
local EDITION="" |
|
|
|
local ISO="" |
|
|
|
local ISO="" |
|
|
|
local URL="" |
|
|
|
local URL="" |
|
|
|
local HASH="" |
|
|
|
local HASH="" |
|
|
|
|
|
|
|
|
|
|
|
BASE=$(echo "${RELEASE}" | cut -d'-' -f1) |
|
|
|
if [ -n "${1}" ]; then |
|
|
|
URL="https://cdn.haiku-os.org/haiku-release/${BASE}" |
|
|
|
EDITION="${1}" |
|
|
|
ISO="haiku-${RELEASE}-anyboot.iso" |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
URL="https://cdn.haiku-os.org/haiku-release/${RELEASE}" |
|
|
|
|
|
|
|
ISO="haiku-${RELEASE}-${EDITION}-anyboot.iso" |
|
|
|
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4) |
|
|
|
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4) |
|
|
|
web_get "${URL}/${ISO}" "${VM_PATH}" |
|
|
|
web_get "${URL}/${ISO}" "${VM_PATH}" |
|
|
|
check_hash "${ISO}" "${HASH}" |
|
|
|
check_hash "${ISO}" "${HASH}" |
|
|
|