Minor clean up of FreeDOS support

This commit is contained in:
Martin Wimpress 2022-02-24 23:04:35 +00:00
parent ebc83ebacf
commit fb771265f1
No known key found for this signature in database
GPG key ID: 61DF940515E06DA3

View file

@ -286,8 +286,7 @@ function editions_freebsd(){
} }
function releases_freedos() { function releases_freedos() {
echo 1.2 \ echo 1.2 1.3
1.3
} }
function releases_garuda() { function releases_garuda() {
@ -893,19 +892,16 @@ function get_freebsd() {
function get_freedos() { function get_freedos() {
local HASH="" local HASH=""
local ISO="" local ISO=""
local URL="" local URL="http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/${RELEASE}/official"
URL="http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/${RELEASE}/official" case ${RELEASE} in
case $RELEASE in
1.2) 1.2)
ISO="FD12CD.iso" ISO="FD12CD.iso"
HASH=$(wget -q -O- "${URL}/FD12.sha" | grep "${ISO}" | cut -d' ' -f1) HASH=$(wget -q -O- "${URL}/FD12.sha" | grep "${ISO}" | cut -d' ' -f1)
;; ;;
1.3) 1.3)
ISO="FD13-LiveCD.zip" ISO="FD13-LiveCD.zip"
HASH=$(wget -q -O- "${URL}/verify.txt" | grep -A 8 "sha256sum" | \ HASH=$(wget -q -O- "${URL}/verify.txt" | grep -A 8 "sha256sum" | grep "${ISO}" | cut -d' ' -f1)
grep "${ISO}" | cut -d' ' -f1)
;; ;;
esac esac