WIFI-3063: Changed the way that we fetch the interface name so the interface doesn't need to be online

Signed-off-by: Owen Anderson <owenthomasanderson@gmail.com>
This commit is contained in:
Owen Anderson
2021-07-19 11:39:10 -04:00
committed by Arif Alam
parent b613c1815a
commit f49c70d864
2 changed files with 25 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
From c095555876344c46ac2653e97f4848f7fedd781b Mon Sep 17 00:00:00 2001
From: Owen Anderson <owenthomasanderson@gmail.com>
Date: Fri, 16 Jul 2021 12:53:17 -0400
Subject: [PATCH] Changed the method we use to get the interface name for lldp
---
package/network/services/lldpd/files/lldpd.init | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/network/services/lldpd/files/lldpd.init b/package/network/services/lldpd/files/lldpd.init
index bc429de484..64dfccfebe 100644
--- a/package/network/services/lldpd/files/lldpd.init
+++ b/package/network/services/lldpd/files/lldpd.init
@@ -37,7 +37,7 @@ write_lldpd_conf()
local iface ifnames=""
for iface in $ifaces; do
local ifname=""
- if network_get_device ifname "$iface" || [ -e "/sys/class/net/$iface" ]; then
+ if network_get_physdev ifname "$iface" || [ -e "/sys/class/net/$iface" ]; then
append ifnames "${ifname:-$iface}" ","
fi
done
--
2.25.1