diff --git a/proxmenu-scripts.sh b/proxmenu-scripts.sh index 1448aa7..229cd8b 100755 --- a/proxmenu-scripts.sh +++ b/proxmenu-scripts.sh @@ -173,6 +173,18 @@ INSTALL_OMSA() { esac } +DOWNLOAD_VIRTIO() { + 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 + url=$redirect_url + [[ -z "$url" ]] && break + done + echo "HERE: ${url}" + + echo -e "\n${idsCL[Green]}VirtIO drivers for Windows have been downloaded to the local storage${idsCL[Default]}" + [ ${action-x} ] && exit 0 || ENTER2CONTINUE +} + DETECT_CPU(){ echo if ! command -v proxclmc &> /dev/null; then @@ -233,16 +245,17 @@ MAIN_MENU() { fi echo if ! command -v glances &> /dev/null; then - echo -e " [${idsCL[LightYellow]}8${idsCL[Default]}] ${idsCL[White]}Install Glances (CLI Monitor)${idsCL[Default]}" + echo -e " [${idsCL[LightYellow]}7${idsCL[Default]}] ${idsCL[White]}Install Glances (CLI Monitor)${idsCL[Default]}" else - echo -e "${idsCL[DarkGray]} [8] Glances is already installed${idsCL[Default]}" + echo -e "${idsCL[DarkGray]} [7] Glances is already installed${idsCL[Default]}" fi if ! dpkg -s "srvadmin-all" &> /dev/null; then - echo -e " [${idsCL[LightYellow]}9${idsCL[Default]}] ${idsCL[White]}Install Dell OpenManage Server Administrator${idsCL[Default]}" + echo -e " [${idsCL[LightYellow]}8${idsCL[Default]}] ${idsCL[White]}Install Dell OpenManage Server Administrator${idsCL[Default]}" else - echo -e "${idsCL[DarkGray]} [9] Dell OMSA is already installed - ${idsCL[Default]}https://[proxmox-host-ip]:1311" + echo -e "${idsCL[DarkGray]} [8] Dell OMSA is already installed - ${idsCL[Default]}https://[proxmox-host-ip]:1311" fi echo + echo -e " [${idsCL[LightYellow]}9${idsCL[Default]}] ${idsCL[White]}Download Win-VirtIO drivers to local on this host${idsCL[Default]}" echo -e " [${idsCL[LightYellow]}0${idsCL[Default]}] ${idsCL[White]}Detect CPU-Arch for Live Migrations${idsCL[Default]}" echo echo @@ -259,8 +272,9 @@ MAIN_MENU() { [4]) INSTALL_SCREENCONNECT;; [5]) INSTALL_ACRONIS;; [6]) INSTALL_S1;; - [8]) INSTALL_GLANCES;; - [9]) INSTALL_OMSA;; + [7]) INSTALL_GLANCES;; + [8]) INSTALL_OMSA;; + [9]) DOWNLOAD_VIRTIO;; [0]) DETECT_CPU;; [Qq]) EXIT1