aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorRoger Pueyo Centelles <roger.pueyo@guifi.net>2021-04-29 11:38:16 +0200
committerKoen Vandeputte <koen.vandeputte@ncentric.com>2021-04-30 10:01:00 +0200
commit14a95b36b1ecd038fffc279878c5a4c51043d709 (patch)
tree84bf49376aebb060cc226d3e904afe2b584040cc /target
parent62a0a8607f2f94f937c17bb7d7f4bff5fbaf15a2 (diff)
downloadupstream-14a95b36b1ecd038fffc279878c5a4c51043d709.tar.gz
upstream-14a95b36b1ecd038fffc279878c5a4c51043d709.tar.bz2
upstream-14a95b36b1ecd038fffc279878c5a4c51043d709.zip
ath79: mikrotik: swap RB922UAGS-5HPaCD eth0/1 MACs
Since support for SFP on the MikroTik RouterBOARD 922UAGS-5HPacD was added by 4387fe00cb, the MAC addresses for eth0 (Ethernet) and eth1 (SFP) were swapped. This patch fixes the 02_network script to assign MAC addresses correctly, so they match the label and the vendor's OS. Tested on a RouterBOARD 922UAGS-5HPacD board. Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ath79/mikrotik/base-files/etc/board.d/02_network5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network b/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network
index 835e2caf93..4ffe82588c 100644
--- a/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network
@@ -44,6 +44,11 @@ ath79_setup_macs()
label_mac="$mac_base"
lan_mac="$mac_base"
;;
+ mikrotik,routerboard-922uags-5hpacd)
+ label_mac="$mac_base"
+ lan_mac="$mac_base"
+ wan_mac=$(macaddr_add $mac_base 1)
+ ;;
*)
label_mac="$mac_base"
wan_mac="$mac_base"