diff options
author | Roger Pueyo Centelles <roger.pueyo@guifi.net> | 2021-04-29 11:38:16 +0200 |
---|---|---|
committer | Koen Vandeputte <koen.vandeputte@ncentric.com> | 2021-04-30 10:26:34 +0200 |
commit | d57e4803940b97c06cbb8c659dd6de907cdd90ec (patch) | |
tree | 1a9a1d30ef001fe8ddc97597aa470212fe5b3d4f /target/linux/ath79/mikrotik/base-files/etc/board.d/02_network | |
parent | a524a0dff80e9bf833ef8c08308923398d3d46a6 (diff) | |
download | upstream-d57e4803940b97c06cbb8c659dd6de907cdd90ec.tar.gz upstream-d57e4803940b97c06cbb8c659dd6de907cdd90ec.tar.bz2 upstream-d57e4803940b97c06cbb8c659dd6de907cdd90ec.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>
(cherry picked from commit 14a95b36b1ecd038fffc279878c5a4c51043d709)
Diffstat (limited to 'target/linux/ath79/mikrotik/base-files/etc/board.d/02_network')
-rwxr-xr-x | target/linux/ath79/mikrotik/base-files/etc/board.d/02_network | 5 |
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 c407da6dcd..54e7bb20cf 100755 --- a/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network +++ b/target/linux/ath79/mikrotik/base-files/etc/board.d/02_network @@ -45,6 +45,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" |