Change Bridge Choise in Advanced

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

View File

@ -421,6 +421,10 @@ advanced_settings() {
BRIDGES=$( ip link show | grep -oP '(?<=: )vmbr\d+' | sort)
if [[ -z "$BRIDGES" ]]; then
BRG="vmbr0"
echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}"
else
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
BRG="vmbr0"
@ -431,6 +435,7 @@ advanced_settings() {
else
exit_script
fi
fi
while true; do
NET=$(whiptail --backtitle "[dev] Proxmox VE Helper Scripts" --inputbox "Set a Static IPv4 CIDR Address (/24)" 8 58 dhcp --title "IP ADDRESS" 3>&1 1>&2 2>&3)