# Template file for 'debian' OSNAME="debian" PRETTY="Debian" LOGO=" " ICON="debian.svg" ICON_ONLINE="https://distrowatch.com/images/yvzhuwbpy/debian.png" CATEGORY="Beginner" BASEDOF="-" DESCRIPTION="Complete Free Operating System with perfect level of ease of use and stability" HOMEPAGE="https://www.debian.org" CREDENTIALS="-" GPG="" RSS="" DW="" MAGNET="" CHAT="" RELEASES="13.5.0 12.14.0 11.11.0" EDITIONS="cinnamon gnome kde lxde lxqt mate netinst standard xfce" QEMU_ARCH="amd64 arm64" releases_() { local ARCHIVE="" local MAJ="" local NEW="" local OLD="" NEW=$(web_pipe "https://cdimage.debian.org/debian-cd/" | grep '\.[0-9]/' | cut -d'>' -f 9 | cut -d'/' -f 1) echo -n "${NEW}" MAJ=$(echo "${NEW}" | cut -d'.' -f 1) ARCHIVE="$(web_pipe "https://cdimage.debian.org/cdimage/archive/" | grep folder | grep -v NEVER | cut -d'"' -f 6)" for i in {1..2}; do CUR=$((MAJ - i)) OLD=$(grep ^"${CUR}" <<< "${ARCHIVE}" | tail -n 1 | tr -d '/') echo -n " ${OLD}" done echo } editions_() { echo cinnamon gnome kde lxde lxqt mate netinst standard xfce } arch_() { # arm64 is only published for netinst; live ISOs are amd64-only. # Returning the superset here; non-matching combos fail web_check in test mode. echo "amd64 arm64" } get_() { local DEBCURRENT="" local HASH="" local ISO="debian-live-${RELEASE}-${ARCH:-amd64}-${EDITION}.iso" local URL="https://cdimage.debian.org/cdimage/archive/${RELEASE}-live/${ARCH:-amd64}/iso-hybrid" DEBCURRENT=$(web_pipe "https://cdimage.debian.org/debian-cd/" | grep '\.[0-9]/' | cut -d'>' -f 9 | cut -d'/' -f 1) case "${ARCH}" in arm64) URL="https://cdimage.debian.org/cdimage/archive/${RELEASE}-live/arm64/iso-dvd" ;; *) case "${RELEASE}" in "${DEBCURRENT}") URL="https://cdimage.debian.org/debian-cd/${RELEASE}-live/amd64/iso-hybrid";; esac ;; esac if [ "${EDITION}" == "netinst" ]; then URL="${URL/-live/}" URL="${URL/hybrid/cd}" URL="${URL/iso-dvd/iso-cd}" ISO="${ISO/-live/}" fi HASH=$(web_pipe "${URL}/SHA512SUMS" | grep "${ISO}" | cut -d' ' -f1 | head -n 1) echo "${URL}/${ISO} ${HASH}" } config_() { echo "disk_size=\"32G\"" >> "${CONF_FILE}" }