[openwrt/openwrt] ramips: fix network setup for Ubiquiti ER-X/ER-X-SFP

LEDE Commits lede-commits at lists.infradead.org
Mon Jul 20 11:16:53 EDT 2020


adrian pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/6269f10ea4c4c126a00789e5e0e224422a2b1317

commit 6269f10ea4c4c126a00789e5e0e224422a2b1317
Author: Nelson Cai <niphor at gmail.com>
AuthorDate: Mon Jul 20 13:02:27 2020 +0800

    ramips: fix network setup for Ubiquiti ER-X/ER-X-SFP
    
    The function name ucidef_set_interface_lan_wan does not exist,
    use the proper name by adding an "s" and thereby fix network
    setup on these devices.
    
    Fixes: 22468cc40c8b (ramips: erx and erx-sfp: fix missing WAN interface)
    
    Signed-off-by: Nelson Cai <niphor at gmail.com>
    [commit message/title facelift]
    Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 target/linux/ramips/mt7621/base-files/etc/board.d/02_network | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
index 9c32f59ab8..2d3db99b3d 100755
--- a/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt7621/base-files/etc/board.d/02_network
@@ -48,10 +48,10 @@ ramips_setup_interfaces()
 		ucidef_set_interfaces_lan_wan "lan2 lan3 lan4 lan5" "wan"
 		;;
 	ubnt,edgerouter-x)
-		ucidef_set_interface_lan_wan "eth1 eth2 eth3 eth4" "eth0"
+		ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4" "eth0"
 		;;
 	ubnt,edgerouter-x-sfp)
-		ucidef_set_interface_lan_wan "eth1 eth2 eth3 eth4 eth5" "eth0"
+		ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4 eth5" "eth0"
 		;;
 	zyxel,wap6805)
 		ucidef_set_interface_lan "lan1 lan2 lan3 lan4"



More information about the lede-commits mailing list