mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-05-10 09:23:09 +00:00
This reverts commit 9d21ceacc3fa14805ebe4200a9cd47b51b21d76f.
This commit is contained in:
parent
a62a4876ec
commit
3b5a901832
@ -528,7 +528,7 @@ advanced_settings() {
|
||||
exit_script
|
||||
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
|
||||
BRG="vmbr0"
|
||||
echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user