aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek
diff options
context:
space:
mode:
authorChukun Pan <amadeus@jmu.edu.cn>2023-03-20 23:08:01 +0800
committerChristian Marangi <ansuelsmth@gmail.com>2023-04-21 18:44:40 +0200
commit30d84684cf2b574a63abd2b6f4e89c870be2d1af (patch)
treed6989e99dd49c8693a7fc65857cf1cbf68c0854c /target/linux/mediatek
parent800ce7f7b44fcffbccd3fadde3235e0dddfb6c69 (diff)
downloadupstream-30d84684cf2b574a63abd2b6f4e89c870be2d1af.tar.gz
upstream-30d84684cf2b574a63abd2b6f4e89c870be2d1af.tar.bz2
upstream-30d84684cf2b574a63abd2b6f4e89c870be2d1af.zip
mediatek: filogic: move mac address setting together
Simultaneously sort in the order of letters. Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
Diffstat (limited to 'target/linux/mediatek')
-rw-r--r--target/linux/mediatek/filogic/base-files/etc/board.d/02_network10
1 files changed, 6 insertions, 4 deletions
diff --git a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network
index 730064695d..982d03deca 100644
--- a/target/linux/mediatek/filogic/base-files/etc/board.d/02_network
+++ b/target/linux/mediatek/filogic/base-files/etc/board.d/02_network
@@ -12,16 +12,15 @@ mediatek_setup_interfaces()
CI_UBIPART="UBI_DEV"
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "eth1"
;;
+ bananapi,bpi-r3)
+ ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 sfp2" "eth1 wan"
+ ;;
mediatek,mt7986a-rfb)
ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan6" "eth1 wan"
;;
mediatek,mt7986b-rfb)
ucidef_set_interfaces_lan_wan "lan0 lan1 lan2 lan3" eth1
;;
- bananapi,bpi-r3)
- ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 sfp2" "eth1 wan"
- ucidef_set_interface_macaddr "wan" "$(macaddr_add $(cat /sys/class/net/eth0/address) 1)"
- ;;
xiaomi,redmi-router-ax6000-stock|\
xiaomi,redmi-router-ax6000-ubootmod)
ucidef_set_interfaces_lan_wan "lan2 lan3 lan4" wan
@@ -46,6 +45,9 @@ mediatek_setup_macs()
wan_mac="${addr}"
lan_mac="${addr}"
;;
+ bananapi,bpi-r3)
+ wan_mac=$(macaddr_add $(cat /sys/class/net/eth0/address) 1)
+ ;;
xiaomi,redmi-router-ax6000-stock|\
xiaomi,redmi-router-ax6000-ubootmod)
wan_mac=$(mtd_get_mac_ascii Bdata ethaddr_wan)