Skip to content

Commit

Permalink
ramips: fix MikroTik 750Gr3 LAN ports names
Browse files Browse the repository at this point in the history
They are labeled as LAN2..LAN5 instead of LAN1..LAN4

Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
  • Loading branch information
dengqf6 authored and 981213 committed Apr 4, 2020
1 parent 53b6624 commit c24d611
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions target/linux/ramips/dts/mt7621_mikrotik_rb750gr3.dts
Expand Up @@ -145,22 +145,22 @@

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";
};
};
};
Expand Down
3 changes: 3 additions & 0 deletions target/linux/ramips/mt7621/base-files/etc/board.d/02_network
Expand Up @@ -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"
Expand Down

0 comments on commit c24d611

Please sign in to comment.