1
0
mirror of https://github.com/community-scripts/ProxmoxVE.git synced 2025-05-10 11:43:06 +00:00

Revert "fix: detect all bridge types, not just vmbr prefix (#4351)" (#4362)

This reverts commit 9d21ceacc3fa14805ebe4200a9cd47b51b21d76f.
This commit is contained in:
CanbiZ 2025-05-09 21:55:07 +02:00 committed by GitHub
parent a62a4876ec
commit 3b5a901832
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -528,7 +528,7 @@ advanced_settings() {
exit_script exit_script
fi fi
BRIDGES=$( grep -B1 "bridge-" /etc/network/interfaces | grep "iface" | grep -Pv "^\s*#" | awk '{print $2}' | sort | uniq | while read bridge; do ip link show "$bridge" 2> /dev/null | grep -oP "$bridge"; done ) BRIDGES=$( ip link show | grep -oP '(?<=: )vmbr\d+' | sort)
if [[ -z "$BRIDGES" ]]; then if [[ -z "$BRIDGES" ]]; then
BRG="vmbr0" BRG="vmbr0"
echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}" echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}"