forked from freifunk-franken/firmware
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>
17 lines
242 B
Plaintext
17 lines
242 B
Plaintext
. /lib/functions/fff/network
|
|
|
|
PORTORDER="1"
|
|
|
|
WANDEV=eth0
|
|
SWITCHDEV=eth1
|
|
WAN_PORTS=
|
|
BATMAN_PORTS="0t"
|
|
CLIENT_PORTS="0t"
|
|
|
|
ROUTERMAC=$(cat /sys/class/net/eth0/address)
|
|
ETHMESHMAC="$(macFlipLocalBit "$ROUTERMAC")"
|
|
|
|
. /etc/network.mode
|
|
|
|
ETHPORT=1
|