Changes to Bridge detection

This commit is contained in:
Michel Roegl-Brunner 2025-05-15 09:40:22 +02:00
parent 14ad92198b
commit 7f96fef66f

View File

@ -490,6 +490,7 @@ advanced_settings() {
while read -r pair; do
start=$(echo "${pair}" | cut -d':' -f1)
end=$(echo "${pair}" | cut -d':' -f2)
echo "${start}:${end} --- ${iface_filepath}"
if awk "NR >= ${start} && NR <= ${end}" "${iface_filepath}" | grep -qP '^\s*bridge[-_](ports|stp|fd|vlan-aware|vids)\s+'; then
iface_name=$(sed "${start}q;d" "${iface_filepath}" | awk '{print $2}')
BRIDGES="${iface_name}"$'\n'"${BRIDGES}"