From 592f98dfb70c184bcd88872c948b18c6c73cf9fc Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner Date: Mon, 29 Sep 2025 14:12:56 +0200 Subject: [PATCH] Refactor Bridge description logic --- misc/build.func | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/build.func b/misc/build.func index acd4a96c..b84e146d 100644 --- a/misc/build.func +++ b/misc/build.func @@ -618,8 +618,8 @@ advanced_settings() { BRIDGE_MENU_OPTIONS=() while IFS= read -r bridge; do if [[ -n "$bridge" ]]; then - # Get description from Proxmox built-in method - description=$(grep '^#' /etc/network/interfaces | sed 's/^#\s*//' | tail -n1) + # Get description from Proxmox built-in method - find comment for this specific bridge + description=$(grep -A 10 "iface $bridge" /etc/network/interfaces | grep '^#' | head -n1 | sed 's/^#\s*//') if [[ -n "$description" ]]; then BRIDGE_MENU_OPTIONS+=("$bridge" "${description}") else