This commit is contained in:
2026-03-05 20:20:55 -06:00
parent 8de08c110c
commit 4d4c74c1db
2 changed files with 8 additions and 9 deletions

View File

@@ -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##*/}