We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c604aeb commit 9d21ceaCopy full SHA for 9d21cea
misc/build.func
@@ -528,7 +528,7 @@ advanced_settings() {
528
exit_script
529
fi
530
531
- BRIDGES=$( ip link show | grep -oP '(?<=: )vmbr\d+' | sort)
+ 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 )
532
if [[ -z "$BRIDGES" ]]; then
533
BRG="vmbr0"
534
echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}"
0 commit comments