From 5fe21ea672481f2ff292b80a3910f721e993b2a2 Mon Sep 17 00:00:00 2001 From: "Arnaud G. GIBERT" Date: Sun, 6 Jul 2025 13:33:05 +0200 Subject: [PATCH] - Fix empty device status. --- usr/local/lib/network.bash | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/usr/local/lib/network.bash b/usr/local/lib/network.bash index fd902a6..1c73f14 100644 --- a/usr/local/lib/network.bash +++ b/usr/local/lib/network.bash @@ -1009,7 +1009,10 @@ network_status() do network_src_tab_get ${src_id} - echo ${src_device} + if [[ "${src_device}" != "" ]] + then + echo ${src_device} + fi done | sort -u echo "DST" @@ -1017,7 +1020,10 @@ network_status() do network_dst_tab_get ${dst_id} - echo ${dst_device} + if [[ "${dst_device}" != "" ]] + then + echo ${dst_device} + fi done | sort -u ) | while read entry do