Add bodhi linux (#751)

This commit is contained in:
zenobit 2023-10-18 11:41:47 +02:00 committed by GitHub
parent 9f9b6183e2
commit 39de883c40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,6 +185,7 @@ function os_support() {
arcolinux \
batocera \
blendos \
bodhi \
bunsenlabs \
cachyos \
centos-stream \
@ -304,6 +305,14 @@ function releases_bunsenlabs() {
echo latest
}
function releases_bodhi() {
echo 7.0.0
}
function editions_bodhi() {
echo standard hwe s76
}
function releases_cachyos() {
echo 230813
}
@ -1138,6 +1147,20 @@ function get_batocera() {
echo "${URL}/${ISO} ${HASH}"
}
function get_bodhi() {
local EDITION="${1:-}"
local HASH=""
local ISO=""
local URL="https://sourceforge.net/projects/bodhilinux/files/${RELEASE}"
case ${EDITION} in
standard) ISO="bodhi-${RELEASE}-64.iso";;
*) ISO="bodhi-${RELEASE}-64-${EDITION}.iso";;
esac
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}
function get_cachyos() {
local HASH=""
local ISO="cachyos-${EDITION}-linux-${RELEASE}.iso"