mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-06-14 17:36:40 +00:00
30 lines
1 KiB
Text
30 lines
1 KiB
Text
# 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.11.0 11.11.0 10.13.0"
|
|
EDITIONS="xfce standard netinst mate lxqt lxde kde gnome cinnamon"
|
|
|
|
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}"
|
|
}
|
|
|