Adrian Schmutzler
68c7d75a1b
In the latest release, OpenWrt provides the label MAC address for many devices. All of our devices should be covered. In can be retrieved by the function get_mac_label from /lib/functions/system.sh Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Reviewed-by: Fabian Bläse <fabian@blaese.de>
18 lines
408 B
Plaintext
18 lines
408 B
Plaintext
. /lib/functions/fff/network
|
|
|
|
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)")
|
|
|
|
. /etc/network.mode
|
|
|
|
LAN0PORT=5
|
|
LAN1PORT=4
|