feat: Add support for FreeDOS 1.4 (#1678)

This commit is contained in:
TheMuso 2025-06-18 11:45:25 +10:00 committed by GitHub
parent 6145f685aa
commit 9f90d46ea1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 10 additions and 4 deletions

View File

@ -743,7 +743,7 @@ function editions_freebsd() {
}
function releases_freedos() {
echo 1.3 1.2
echo 1.4 1.3 1.2
}
function releases_garuda() {
@ -1892,11 +1892,17 @@ function get_freebsd() {
function get_freedos() {
local HASH=""
local ISO=""
local URL="https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/${RELEASE}/official"
local BASE_URL="https://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/${RELEASE}"
local URL=""
case ${RELEASE} in
1.2) ISO="FD12CD.iso"
1.2) URL="${BASE_URL}/official"
ISO="FD12CD.iso"
HASH=$(web_pipe "${URL}/FD12.sha" | grep "${ISO}" | cut -d' ' -f1);;
1.3) ISO="FD13-LiveCD.zip"
1.3) URL="${BASE_URL}/official"
ISO="FD13-LiveCD.zip"
HASH=$(web_pipe "${URL}/verify.txt" | grep -A 8 "sha256sum" | grep "${ISO}" | cut -d' ' -f1);;
1.4) URL="${BASE_URL}"
ISO="FD14-LiveCD.zip"
HASH=$(web_pipe "${URL}/verify.txt" | grep -A 8 "sha256sum" | grep "${ISO}" | cut -d' ' -f1);;
esac
echo "${URL}/${ISO} ${HASH}"