Merge pull request #1 from philclifford/help-guyosi

Attempt to get gentoo
pull/255/head
guyosi 3 years ago committed by GitHub
commit ca6fac8c7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 32
      quickget

@ -127,6 +127,8 @@ function list_csv() {
DOWNLOADER="${DL}" DOWNLOADER="${DL}"
elif [ "${OS}" == "garuda" ]; then elif [ "${OS}" == "garuda" ]; then
DOWNLOADER="${DL}" DOWNLOADER="${DL}"
elif [ "${OS}" == "gentoo" ]; then
DOWNLOADER="${DL}"
elif [[ "${OS}" == *"kdeneon"* ]]; then elif [[ "${OS}" == *"kdeneon"* ]]; then
DOWNLOADER="${DL}" DOWNLOADER="${DL}"
else else
@ -876,18 +878,24 @@ function get_fedora() {
} }
function get_gentoo() { function get_gentoo() {
local HASH="" local HASH=""
local ISO="" local ISO=""
local URL="" local URL=""
local LOCAT=""
validate_release "releases_gentoo" local INSTALLMIN=""
ISO="gentoo-${RELEASE}-amd64.iso"
URL="https://www.gentoo.org/download/${ISO}" validate_release "releases_gentoo"
web_get "${URL}" "${VM_PATH}" eval $( wget -O/tmp/gentoolatest https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/${RELEASE}-iso.txt 2>&1 |grep Location | awk '{print "LOCAT="$2}' )
web_get "${URL}/SHA256SUMS" "${VM_PATH}" LOCAT=$(dirname ${LOCAT})
HASH=$(cat "${VM_PATH}/SHA256SUMS" | cut -d' ' -f1) eval $( awk '/admincd-amd64/ {print "ADMIN="$1}; /install-amd64-minimal/ {print "INSTALLMIN="$1}' /tmp/gentoolatest )
check_hash "${ISO}" "${HASH}" URL="${LOCAT}/${INSTALLMIN}"
make_vm_config "${ISO}" ISO=$(basename "${INSTALLMIN}" )
web_get "${URL}" "${VM_PATH}"
HASH=$(wget -q -O- ${LOCAT}/${INSTALLMIN}.DIGESTS|grep -e iso|grep -v -e CONT -e catalyst|cut -d\ -f1)
check_hash "${ISO}" "${HASH}"
make_vm_config "${ISO}"
} }
function get_kali() { function get_kali() {

Loading…
Cancel
Save