From 4d4c74c1db90850dc5d855b763e4911dc665d8a0 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 5 Mar 2026 20:20:55 -0600 Subject: [PATCH] update --- defaults.inc | 6 ++++++ proxmenu-scripts.sh | 11 ++--------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/defaults.inc b/defaults.inc index a1ea38b..2ebd1e6 100755 --- a/defaults.inc +++ b/defaults.inc @@ -8,3 +8,9 @@ VERS='2026.3.1' RNIP=$(ip addr show $(ip route | awk '/default/ { print $5 }') | grep "inet" | head -n 1 | awk '/inet/ {print $2}' | cut -d'/' -f1) +url="https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso" +while redirect_url=$( curl -I -s -S -f -w "%{redirect_url}\\n" -o /dev/null "${url}" ); do + VIRTIO_DOWNLOAD_URL=${url}; url=${redirect_url}; [[ -z "$url" ]] && break +done +VIRTIO_FILE=${VIRTIO_DOWNLOAD_URL##*/} + diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index b1795d4..6f4211a 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -174,11 +174,10 @@ INSTALL_OMSA() { } DOWNLOAD_VIRTIO() { - echo -e "\n${idsCL[LightCyan]}Current \"Stable\" version available for download:${idsCL[Default]}" - echo -e "${DOWNLOAD_URL}\n" + echo -e "${VIRTIO_FILE}\n" echo -en "${idsCL[Green]}Downloading ... " - wget -q -P /var/lib/vz/template/iso ${DOWNLOAD_URL} + wget -q -P /var/lib/vz/template/iso ${VIRTIO_DOWNLOAD_URL} echo -en "${idsCL[LightGreen]}Done${idsCL[Default]}" echo -e "\n${idsCL[Green]}VirtIO drivers for Windows have been downloaded to the local storage${idsCL[Default]}" @@ -211,12 +210,6 @@ DETECT_CPU(){ [ ${action-x} ] && exit 0 || ENTER2CONTINUE } -url="https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso" -while redirect_url=$( curl -I -s -S -f -w "%{redirect_url}\\n" -o /dev/null "${url}" ); do - VIRTIO_DOWNLOAD_URL=${url}; url=${redirect_url}; [[ -z "$url" ]] && break -done -VIRTIO_FILE=${VIRTIO_DOWNLOAD_URL##*/} - MAIN_MENU() { while : do