mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-06-14 09:32:21 +00:00
47 lines
1 KiB
Text
47 lines
1 KiB
Text
# Template file for 'dietpi'
|
|
OSNAME="dietpi"
|
|
PRETTY="DietPi"
|
|
LOGO=""
|
|
ICON="dietpi.svg"
|
|
ICON_ONLINE="https://distrowatch.com/images/yvzhuwbpy/dietpi.png"
|
|
CATEGORY="Lightweight"
|
|
BASEDOF="Debian"
|
|
DESCRIPTION="Highly optimised minimal Debian OS"
|
|
HOMEPAGE="https://dietpi.com"
|
|
CREDENTIALS="-"
|
|
GPG=""
|
|
RSS=""
|
|
DW=""
|
|
MAGNET=""
|
|
CHAT=""
|
|
|
|
RELEASES="uefi bios"
|
|
EDITIONS="Bookworm Forky Trixie"
|
|
QEMU_ARCH="amd64"
|
|
|
|
releases_() {
|
|
echo bios uefi
|
|
}
|
|
|
|
editions_() {
|
|
web_pipe "https://dietpi.com/downloads/images/" | grep '\.iso"' | cut -d'"' -f2 | grep '_VM-UEFI' | cut -d'-' -f4 | cut -d'_' -f1
|
|
}
|
|
|
|
get_() {
|
|
local HASH=""
|
|
local ISO=""
|
|
local URL="https://dietpi.com/downloads/images"
|
|
if [ "${RELEASE}" == 'bios' ]; then
|
|
local ISO="DietPi_VM-x86_64-${EDITION}_Installer.iso"
|
|
elif [ "${RELEASE}" == 'uefi' ]; then
|
|
local ISO="DietPi_VM-UEFI-x86_64-${EDITION}_Installer.iso"
|
|
fi
|
|
HASH=$(wget -q -O- "${URL}/SHASUMS.txt" | grep "${ISO}" | cut -d' ' -f1)
|
|
echo "${URL}/${ISO} ${HASH}"
|
|
}
|
|
|
|
config_() {
|
|
if [[ "${RELEASE}" == 'bios' ]]; then
|
|
echo "boot=\"legacy\"" >> "${CONF_FILE}"
|
|
fi
|
|
}
|