mirror of
				https://github.com/Telecominfraproject/wlan-ap.git
				synced 2025-10-31 02:17:58 +00:00 
			
		
		
		
	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:
		
							
								
								
									
										25
									
								
								patches/0057-LLDP-interface-name-switch.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								patches/0057-LLDP-interface-name-switch.patch
									
									
									
									
									
										Normal 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 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Owen Anderson
					Owen Anderson