# Template file for 'netbsd' OSNAME="netbsd" PRETTY="NetBSD" LOGO="" ICON="netbsd.svg" ICON_ONLINE="" 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="" MAGNET_PREFERRED="" TORRENT="" CHAT="" GUEST="netbsd" RELEASES="9.5 9.4 9.3 9.2 9.1 9.0 11.1 11.0 10.2 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/images/${RELEASE}" HASH=$(web_pipe "${URL}/MD5" | grep "${ISO}" | cut -d' ' -f4) echo "${URL}/${ISO} ${HASH}" } config_() { echo "boot=\"legacy\"" >> "${CONF_FILE}" } releases_() { # Releases parsed at generation time — no network access needed. echo "${RELEASES}" }