mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 02:12:49 +00:00 
			
		
		
		
	fix: detect all bridge types, not just vmbr prefix (#4351)
This commit is contained in:
		@@ -528,7 +528,7 @@ advanced_settings() {
 | 
			
		||||
    exit_script
 | 
			
		||||
  fi
 | 
			
		||||
 | 
			
		||||
  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 )
 | 
			
		||||
  if [[ -z "$BRIDGES" ]]; then
 | 
			
		||||
    BRG="vmbr0"
 | 
			
		||||
    echo -e "${BRIDGE}${BOLD}${DGN}Bridge: ${BGN}$BRG${CL}"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user