mirror of
https://github.com/Telecominfraproject/wlan-ap.git
synced 2025-10-29 17:42:41 +00:00
26 lines
941 B
Diff
26 lines
941 B
Diff
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
|
|
|