# Template file for 'debian' OSNAME="debian" PRETTY="Debian" BASEDOF="-" DESCRIPTION="Complete Free Operating System with perfect level of ease of use and stability" HOMEPAGE="https://www.debian.org" CREDENTIALS="-" RELEASES="12.9.0 11.11.0 10.13.0" EDITIONS="xfce standard netinst mate lxqt lxde kde gnome cinnamon" function 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 } function editions_() { echo standard cinnamon gnome kde lxde lxqt mate xfce netinst } function get_() { local DEBCURRENT="" local HASH="" local ISO="debian-live-${RELEASE}-amd64-${EDITION}.iso" local URL="https://cdimage.debian.org/cdimage/archive/${RELEASE}-live/amd64/iso-hybrid" DEBCURRENT=$(web_pipe "https://cdimage.debian.org/debian-cd/" | grep '\.[0-9]/' | cut -d'>' -f 9 | cut -d'/' -f 1) case "${RELEASE}" in "${DEBCURRENT}") URL="https://cdimage.debian.org/debian-cd/${RELEASE}-live/amd64/iso-hybrid";; esac if [ "${EDITION}" == "netinst" ]; then URL="${URL/-live/}" URL="${URL/hybrid/cd}" ISO="${ISO/-live/}" fi HASH=$(web_pipe "${URL}/SHA512SUMS" | grep "${ISO}" | cut -d' ' -f1 | head -n 1) echo "${URL}/${ISO} ${HASH}" }