DistroHopper/public/netbsd
2026-05-27 17:00:06 +02:00

38 lines
1.1 KiB
Text

# Template file for 'netbsd'
OSNAME="netbsd"
PRETTY="NetBSD"
LOGO=""
ICON="netbsd.svg"
ICON_ONLINE="https://distrowatch.com/images/yvzhuwbpy/netbsd.png"
CATEGORY="advanced"
BASEDOF="-"
DESCRIPTION="Free, fast, secure, and highly portable Unix-like Open Source operating system. It is available for a wide range of platforms, from large-scale servers and powerful desktop systems to handheld and embedded devices"
HOMEPAGE="https://www.netbsd.org"
CREDENTIALS="-"
GPG=""
RSS=""
DW=""
MAGNET=""
CHAT=""
GUEST="netbsd"
RELEASES="9.4 9.3 9.2 9.1 9.0 10.1 10.0"
QEMU_ARCH="amd64"
releases_() {
# V8 is EOL so filter it out
#shellcheck disable=SC2046,SC2005
echo $(web_pipe "https://cdn.netbsd.org/pub/NetBSD/images/" | grep -o -E '"[[:digit:]]+\.[[:digit:]]+/"' | tr -d '"/' | grep -v ^8 | sort -nr)
}
get_() {
local HASH=""
local ISO="NetBSD-${RELEASE}-amd64.iso"
local URL="https://cdn.netbsd.org/pub/NetBSD/NetBSD-${RELEASE}/images"
HASH=$(web_pipe "${URL}/MD5" | grep "${ISO}" | cut -d' ' -f4)
echo "${URL}/${ISO} ${HASH}"
}
config_() {
echo "boot=\"legacy\"" >> "${CONF_FILE}"
}