Change Bridge Choise in Advanced

This commit is contained in:
Michel Roegl-Brunner 2025-05-08 13:08:46 +02:00
parent 8eebc415fa
commit 42d24c2d60

View File

@ -419,7 +419,9 @@ advanced_settings() {
exit_script exit_script
fi fi
if BRG=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --inputbox "Set a Bridge" 8 58 vmbr0 --title "BRIDGE" 3>&1 1>&2 2>&3); then BRIDGES=$( ip link show | grep -oP '(?<=: )vmbr\d+' | sort)
if BRG=$(whiptail --title "$TITLE" --menu "Select network bridge:" 15 60 6 $(echo "$BRIDGES" | awk '{print $0, "Bridge"}') 3>&1 1>&2 2>&3); then
if [ -z "$BRG" ]; then if [ -z "$BRG" ]; then
BRG="vmbr0" BRG="vmbr0"
echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}" echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}"