DistroHopper/templates/gentoo
2026-05-27 17:00:06 +02:00

38 lines
942 B
Text

# Template file for 'gentoo'
OSNAME="gentoo"
PRETTY="Gentoo"
LOGO=" "
ICON="gentoo.svg"
ICON_ONLINE="https://distrowatch.com/images/yvzhuwbpy/gentoo.png"
CATEGORY="advanced"
BASEDOF="-"
HOMEPAGE="https://www.gentoo.org"
DESCRIPTION="Highly flexible, source-based Linux distribution"
CREDENTIALS="-"
GPG=""
RSS=""
DW=""
function releases_() {
echo latest
}
function editions_() {
echo minimal livegui
}
function get_() {
local HASH=""
local ISO=""
local URL="https://mirror.bytemark.co.uk/gentoo/releases/amd64/autobuilds"
case ${EDITION} in
minimal) ISO=$(web_pipe "${URL}/${RELEASE}-iso.txt" | grep install | cut -d' ' -f1);;
livegui) ISO=$(web_pipe "${URL}/${RELEASE}-iso.txt" | grep livegui | cut -d' ' -f1);;
esac
HASH=$(web_pipe "${URL}/${ISO}.DIGESTS" | grep -A 1 SHA512 | grep iso | grep -v CONTENTS | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}
function config_() {
echo "disk_size=\"32G\"" >> "${CONF_FILE}"
}