# Template file for 'alpine' OSNAME="alpine" PRETTY="Alpine Linux" BASEDOF="-" DESCRIPTION="Security-oriented, lightweight Linux distribution based on musl libc and busybox" HOMEPAGE="https://alpinelinux.org/" CREDENTIALS="-" RELEASES="v3.21 v3.20 v3.19 v3.18 v3.17 v3.16 v3.15 v3.14 v3.13 v3.12" function releases_() { local REL="" local RELS="" RELS=$(web_pipe "https://dl-cdn.alpinelinux.org/alpine/" | grep '"v' | cut -d'"' -f2 | tr -d / | sort -Vr | head -n 10) for REL in ${RELS}; do if web_check "https://dl-cdn.alpinelinux.org/alpine/${REL}/releases/x86_64/"; then echo -n "${REL} " fi done } function get_() { local HASH="" local ISO="" local URL="https://dl-cdn.alpinelinux.org/alpine/${RELEASE}/releases/x86_64" local VERSION="" VERSION=$(web_pipe "${URL}/latest-releases.yaml" | awk '/"Xen"/{found=0} {if(found) print} /"Virtual"/{found=1}' | grep 'version:' | awk '{print $2}') ISO="alpine-virt-${VERSION}-x86_64.iso" HASH=$(web_pipe "${URL}/latest-releases.yaml" | awk '/"Xen"/{found=0} {if(found) print} /"Virtual"/{found=1}' | grep 'sha256:' | awk '{print $2}') echo "${URL}/${ISO} ${HASH}" }