DistroHopper/templates/dietpi
2026-05-27 17:00:06 +02:00

41 lines
1,015 B
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=""
function releases_() {
echo bios uefi
}
function editions_() {
web_pipe "https://dietpi.com/downloads/images/" | grep '\.iso"' | cut -d'"' -f2 | grep '_VM-UEFI' | cut -d'-' -f4 | cut -d'_' -f1
}
function 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}"
}
function config_() {
if [[ "${RELEASE}" == 'bios' ]]; then
echo "boot=\"legacy\"" >> "${CONF_FILE}"
fi
}