ramips: fix network setup for Ubiquiti ER-X/ER-X-SFP
authorNelson Cai <niphor@gmail.com>
Mon, 20 Jul 2020 05:02:27 +0000 (13:02 +0800)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Mon, 20 Jul 2020 15:16:47 +0000 (17:16 +0200)
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@gmail.com>
[commit message/title facelift]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/mt7621/base-files/etc/board.d/02_network

index 9c32f59ab8be53c962c6e5b35bcf7e145d5abe3b..2d3db99b3d34ddf50b0b2eed215be07b51602031 100755 (executable)
@@ -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"