Skip to content

Commit

Permalink
ath79: mikrotik: swap RB922UAGS-5HPaCD eth0/1 MACs
Browse files Browse the repository at this point in the history
Since support for SFP on the MikroTik RouterBOARD 922UAGS-5HPacD was
added by 4387fe0, 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>
  • Loading branch information
rogerpueyo authored and Koen Vandeputte committed Apr 30, 2021
1 parent 62a0a86 commit 14a95b3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions target/linux/ath79/mikrotik/base-files/etc/board.d/02_network
Expand Up @@ -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"
Expand Down

0 comments on commit 14a95b3

Please sign in to comment.