DistroHopper/OS/openbsd
zen0bit c087af2323 tmp
2024-04-10 21:20:44 +02:00

15 lines
694 B
Text

INFO=" |OpenBSD|Independent||https://www.openbsd.org/|FREE, multi-platform 4.4BSD-based UNIX-like operating system. Our efforts emphasize portability, standardization, correctness, proactive security and integrated cryptography.";;
function releases_openbsd(){
local OBSD_RELEASES=$(curl -sL https://mirror.leaseweb.com/pub/OpenBSD/|grep -e '6\.[8-9]/' -e '[7-9]\.'|cut -d\" -f4|tr -d '/')
echo ${OBSD_RELEASES}
}
function get_openbsd() {
local HASH=""
local ISO="install${RELEASE//\./}.iso"
local URL="https://mirror.leaseweb.com/pub/OpenBSD/${RELEASE}/amd64"
HASH=$(wget -q -O- "${URL}/SHA256" | grep "${ISO}" | cut -d' ' -f4)
echo "${URL}/${ISO} ${HASH}"
}