DistroHopper/public/freedos
2026-11-29 05:46:38 +01:00

59 lines
1.3 KiB
Text

# Template file for 'freedos'
OSNAME="freedos"
PRETTY="FreeDOS"
LOGO=""
ICON="freedos.svg"
ICON_ONLINE=""
CATEGORY="advanced"
BASEDOF="-"
DESCRIPTION="DOS-compatible operating system that you can use to play classic DOS games, run legacy business software, or develop embedded systems"
HOMEPAGE="https://freedos.org"
CREDENTIALS="-"
GPG=""
RSS=""
DW=""
MAGNET=""
MAGNET_PREFERRED=""
TORRENT=""
CHAT=""
GUEST="freedos"
RELEASES="1.3 1.2"
QEMU_ARCH="amd64"
releases_() {
echo 1.3 1.2
}
get_() {
local HASH=""
local ISO=""
local URL="https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/${RELEASE}/official"
case ${RELEASE} in
1.2) ISO="FD12CD.iso"
HASH=$(web_pipe "${URL}/FD12.sha" | grep "${ISO}" | cut -d' ' -f1);;
1.3) ISO="FD13-LiveCD.zip"
HASH=$(web_pipe "${URL}/verify.txt" | grep -A 8 "sha256sum" | grep "${ISO}" | cut -d' ' -f1);;
esac
echo "${URL}/${ISO} ${HASH}"
}
extract_() {
if [[ ${ISO} = *".zip"* ]]; then
unzip -qo "${VM_PATH}/${ISO}" -d "${VM_PATH}"
rm -f "${VM_PATH}/${ISO}"
ISO="$(ls -1 "${VM_PATH}/"*.iso)"
ISO="$(basename "${ISO}")"
fi
}
config_() {
echo "boot=\"legacy\"" >> "${CONF_FILE}"
echo "disk_size=\"4G\"" >> "${CONF_FILE}"
echo "ram=\"256M\"" >> "${CONF_FILE}"
}
releases_() {
# Releases parsed at generation time — no network access needed.
echo "${RELEASES}"
}