mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-06-14 17:36:40 +00:00
36 lines
1.3 KiB
Text
36 lines
1.3 KiB
Text
# Template file for 'opensuse'
|
|
OSNAME="opensuse"
|
|
PRETTY="openSUSE"
|
|
BASEDOF="-"
|
|
DESCRIPTION="The makers choice for sysadmins, developers and desktop users"
|
|
HOMEPAGE="https://www.opensuse.org"
|
|
CREDENTIALS="-"
|
|
|
|
|
|
RELEASES="tumbleweed microos aeon 15.6 15.5 15.4 15.3 15.2 15.1 15.0"
|
|
|
|
|
|
function get_() {
|
|
local HASH=""
|
|
local ISO=""
|
|
local URL=""
|
|
if [ "${RELEASE}" == "tumbleweed" ]; then
|
|
ISO="openSUSE-Tumbleweed-DVD-x86_64-Current.iso"
|
|
URL="https://download.opensuse.org/tumbleweed/iso"
|
|
elif [ "${RELEASE}" == "microos" ]; then
|
|
ISO="openSUSE-MicroOS-DVD-x86_64-Current.iso"
|
|
URL="https://download.opensuse.org/tumbleweed/iso"
|
|
elif [ "${RELEASE}" == "aeon" ]; then
|
|
ISO="opensuse-aeon.x86_64.iso"
|
|
URL="https://mirrorcache.opensuse.org/tumbleweed/appliances/iso"
|
|
elif [ "${RELEASE}" == 15.0 ] || [ "${RELEASE}" == 15.1 ]; then
|
|
ISO="openSUSE-Leap-${RELEASE}-DVD-x86_64.iso"
|
|
URL="https://download.opensuse.org/distribution/leap/${RELEASE}/iso"
|
|
else
|
|
ISO="openSUSE-Leap-${RELEASE}-DVD-x86_64-Current.iso"
|
|
URL="https://download.opensuse.org/distribution/leap/${RELEASE}/iso"
|
|
fi
|
|
HASH=$(web_pipe "${URL}/${ISO}.sha256" | awk '{if(NR==4) print $0}' | cut -d' ' -f1)
|
|
echo "${URL}/${ISO} ${HASH}"
|
|
}
|
|
|