forked from freifunk-franken/firmware
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:
parent
568ce35d06
commit
ef1ec21462
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue