GL-AR150: Fix ETHMESHMAC

The AR150 seems to have the same MAC address on eth0, eth1 and
phy0. Although it is not a ONEPORT, we can use the shifted bit
like for the ONEPORT devices to get a distinct ETHMESHMAC.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Tim Niemeyer <tim@tn-x.org>
Reviewed-by: Jan Kraus <mayosemmel@gmail.com>
This commit is contained in:
Adrian Schmutzler 2018-01-03 19:24:58 +01:00 committed by Tim Niemeyer
parent 568ce35d06
commit ef1ec21462
1 changed files with 3 additions and 1 deletions

View File

@ -1,3 +1,5 @@
. /lib/functions/fff/network
PORTORDER="1"
WANDEV=eth0
@ -6,8 +8,8 @@ WAN_PORTS=
BATMAN_PORTS="0t"
CLIENT_PORTS="0t"
ETHMESHMAC=$(cat /sys/class/net/eth1/address)
ROUTERMAC=$(cat /sys/class/net/eth0/address)
ETHMESHMAC="$(macFlipLocalBit "$ROUTERMAC")"
. /etc/network.mode