# Template file for 'haiku' OSNAME="haiku" PRETTY="Haiku" LOGO="" ICON="haiku.svg" ICON_ONLINE="" CATEGORY="advanced" BASEDOF="-" DESCRIPTION="Specifically targets personal computing. Inspired by the BeOS, Haiku is fast, simple to use, easy to learn and yet very powerful" HOMEPAGE="https://www.haiku-os.org" CREDENTIALS="-" GPG="" RSS="" DW="" MAGNET="" MAGNET_PREFERRED="" TORRENT="" CHAT="" GUEST="haiku" RELEASES="r1beta5 r1beta4 r1beta3" EDITIONS="x86_gcc2h x86_64" EDITIONS_LIST="x86_gcc2h x86_64" QEMU_ARCH="amd64" releases_() { echo r1beta5 r1beta4 r1beta3 } editions_() { echo x86_64 x86_gcc2h } get_() { local ISO="haiku-${RELEASE}-${EDITION}-anyboot.iso" local URL="http://mirror.rit.edu/haiku/${RELEASE}" HASH=$(web_pipe "${URL}/${ISO}.sha256" | grep "${ISO}" | cut -d' ' -f4) echo "${URL}/${ISO} ${HASH}" } config_() { echo "boot=\"legacy\"" >> "${CONF_FILE}" } releases_() { # Releases parsed at generation time — no network access needed. echo "${RELEASES}" } editions_() { # Editions parsed at generation time — no network access needed. local _scoped="" if [ -n "${RELEASE:-}" ] && declare -F _release_editions_ >/dev/null; then _scoped=$(_release_editions_ "${ARCH:-}|${RELEASE}") fi if [ -n "${_scoped}" ]; then echo "${_scoped}" return 0 fi local _per_arch="EDITIONS_${ARCH:-}" if [ -n "${!_per_arch:-}" ]; then echo "${!_per_arch}" return 0 fi echo "${EDITIONS:-}" }