ramips: fix MikroTik 750Gr3 LAN ports names
authorDENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Thu, 19 Mar 2020 16:26:08 +0000 (00:26 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Sat, 4 Apr 2020 06:56:14 +0000 (14:56 +0800)
They are labeled as LAN2..LAN5 instead of LAN1..LAN4

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
target/linux/ramips/dts/mt7621_mikrotik_rb750gr3.dts
target/linux/ramips/mt7621/base-files/etc/board.d/02_network

index a065ce804de0dccd19a39c6c6a7a1af62ced7c14..e268b233d477a6986b7f33f91b14197140bbc8d2 100644 (file)
 
                port@1 {
                        status = "okay";
-                       label = "lan1";
+                       label = "lan2";
                };
 
                port@2 {
                        status = "okay";
-                       label = "lan2";
+                       label = "lan3";
                };
 
                port@3 {
                        status = "okay";
-                       label = "lan3";
+                       label = "lan4";
                };
 
                port@4 {
                        status = "okay";
-                       label = "lan4";
+                       label = "lan5";
                };
        };
 };
index e2a8a9392d98c513b9d9922320b6512203217efc..d73305981f922038d120969405900a6f9bb74df8 100755 (executable)
@@ -39,6 +39,9 @@ ramips_setup_interfaces()
        ubnt,unifi-nanohd)
                ucidef_set_interface_lan "lan"
                ;;
+       mikrotik,rb750gr3)
+               ucidef_set_interfaces_lan_wan "lan2 lan3 lan4 lan5" "wan"
+               ;;
        ubiquiti,edgerouterx|\
        ubiquiti,edgerouterx-sfp)
                ucidef_set_interface_lan "eth0 eth1 eth2 eth3 eth4"