2021-01-13 21:30:52 +01:00
|
|
|
. /lib/functions/system.sh
|
2017-11-11 11:39:00 +01:00
|
|
|
|
2014-08-11 00:14:46 +02:00
|
|
|
WANDEV=eth0
|
|
|
|
SWITCHDEV=eth0
|
|
|
|
CLIENT_PORTS="0t 4 5"
|
|
|
|
WAN_PORTS="0t 1"
|
|
|
|
BATMAN_PORTS="0t 2 3"
|
|
|
|
|
2017-11-11 11:39:00 +01:00
|
|
|
# use mac address from phy1 with 'locally administered' bit set to '1'
|
|
|
|
# only possible, because wXmesh is created first and therefore gets the 'universally administered address'
|
|
|
|
|
2021-01-13 21:30:52 +01:00
|
|
|
ETHMESHMAC=$(macaddr_setbit_la "$(cat /sys/class/ieee80211/phy1/macaddress)")
|
2017-11-03 15:59:18 +01:00
|
|
|
ROUTERMAC=$(cat /sys/class/net/eth0/address)
|