Skip to content

Commit 3b5a901

Browse files
authored
Revert "fix: detect all bridge types, not just vmbr prefix (#4351)" (#4362)
This reverts commit 9d21cea.
1 parent a62a487 commit 3b5a901

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/build.func

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ advanced_settings() {
528528
exit_script
529529
fi
530530

531-
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 )
531+
BRIDGES=$( ip link show | grep -oP '(?<=: )vmbr\d+' | sort)
532532
if [[ -z "$BRIDGES" ]]; then
533533
BRG="vmbr0"
534534
echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}"

0 commit comments

Comments
 (0)