forked from freifunk-franken/firmware
Fabian Blaese
078bb80a53
Using wifi devices makes it possible to get mac address without having to configure wifi networks. Signed-off-by: Fabian Bläse <fabian@blaese.de> Tested-By: Fabian Bläse <fabian@blaese.de> Reviewed-by: Christian Dresel <fff@chrisi01.de> - Increment package version Signed-off-by: Tim Niemeyer <tim@tn-x.org>
21 lines
470 B
Plaintext
21 lines
470 B
Plaintext
. /lib/functions/fff/network
|
|
|
|
PORTORDER="5 4"
|
|
|
|
WANDEV=eth0
|
|
SWITCHDEV=eth0
|
|
CLIENT_PORTS="0t"
|
|
WAN_PORTS="0t"
|
|
BATMAN_PORTS="0t"
|
|
|
|
# use mac address from phy0 with 'locally administered' bit set to '1'
|
|
# only possible, because wXmesh is created first and therefore gets the 'universally administered address'
|
|
|
|
ETHMESHMAC=$(macFlipLocalBit "$(cat /sys/class/ieee80211/phy0/macaddress)")
|
|
ROUTERMAC=$(cat /sys/class/net/eth0/address)
|
|
|
|
. /etc/network.mode
|
|
|
|
LAN0PORT=5
|
|
LAN1PORT=4
|