forked from freifunk-franken/firmware
Adrian Schmutzler
73e227cdc8
In OpenWrt commit 27eea249213b ("ar71xx: fix MAC address setup for TL-WDR4300 board") the LAN/WAN MAC addresses for the TL-WDR3600, TL-WDR4300 and TL-WDR4310 were changed. This creates an overlap of the LAN und 5 GHz MAC addresses, where the first will also affect the BATMAN interface eth0.3. To keep BATMAN interfaces with separate addresses, this patch will set the ETHMESHMAC to eth0 +1, corresponding to the virtual WAN device (VLAN 2) OpenWrt sets up (which we aren't using anyway). ref: https://github.com/openwrt/openwrt/commit/27eea249213b04a372491009850926f9282d13 Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Fabian Bläse <fabian@blaese.de>
11 lines
210 B
Plaintext
11 lines
210 B
Plaintext
WANDEV=eth0
|
|
SWITCHDEV=eth0
|
|
CLIENT_PORTS="0t 4 5"
|
|
WAN_PORTS="0t 1"
|
|
BATMAN_PORTS="0t 2 3"
|
|
|
|
. /lib/functions/system.sh
|
|
|
|
ROUTERMAC=$(cat /sys/class/ieee80211/phy1/macaddress)
|
|
ETHMESHMAC=$(macaddr_add $ROUTERMAC 1)
|