# Template file for 'openindiana' OSNAME="openindiana" PRETTY="OpenIndiana" LOGO="" ICON="openindiana.svg" CATEGORY="advanced" BASEDOF="Solaris OPenSolaris" HOMEPAGE="https://www.openindiana.org" DESCRIPTION="Community supported illumos-based operating system" CREDENTIALS="-" GPG="" RSS="" DW="" GUEST="solaris" function releases_() { local dir count=0 releases="" for dir in $(web_pipe "https://dlc.openindiana.org/isos/hipster/" | grep 'href="./2' | cut -d'/' -f 2 | sort -r); do if web_check "https://dlc.openindiana.org/isos/hipster/${dir}/OI-hipster-gui-${dir}.iso" >/dev/null 2>&1; then releases+="${releases:+ }${dir}" count=$((count + 1)) [ "$count" -lt 5 ] || break fi done printf '%s\n' "$releases" } function editions_() { echo gui text minimal } function get_() { local HASH="" local ISO="" local URL="" URL="https://dlc.openindiana.org/isos/hipster/${RELEASE}" ISO="OI-hipster-${EDITION}-${RELEASE}.iso" HASH=$(web_pipe "${URL}/${ISO}.sha256" |cut -d' ' -f1) echo "${URL}/${ISO} ${HASH}" } function config_() { echo "boot=\"legacy\"" >> "${CONF_FILE}" echo "disk_size=\"32G\"" >> "${CONF_FILE}" }