DistroHopper/public/openindiana
2026-11-29 05:46:38 +01:00

79 lines
1.8 KiB
Text

# Template file for 'openindiana'
OSNAME="openindiana"
PRETTY="OpenIndiana"
LOGO=""
ICON="openindiana.svg"
ICON_ONLINE=""
CATEGORY="advanced"
BASEDOF="Solaris OPenSolaris"
DESCRIPTION="Community supported illumos-based operating system"
HOMEPAGE="https://www.openindiana.org"
CREDENTIALS="-"
GPG=""
RSS=""
DW=""
MAGNET=""
MAGNET_PREFERRED=""
TORRENT=""
CHAT=""
GUEST="solaris"
RELEASES="20261030 20260430 20251026 20250606 20250402"
EDITIONS="gui minimal text"
EDITIONS_LIST="gui
minimal
text"
QEMU_ARCH="amd64"
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"
}
editions_() {
echo gui text minimal
}
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}"
}
config_() {
echo "boot=\"legacy\"" >> "${CONF_FILE}"
echo "disk_size=\"32G\"" >> "${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:-}"
}