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>
14 lines
311 B
Plaintext
14 lines
311 B
Plaintext
WANDEV=eth0
|
|
SWITCHDEV=eth0
|
|
CLIENT_PORTS="1 2 0t"
|
|
WAN_PORTS="5 0t"
|
|
BATMAN_PORTS="3 4 0t"
|
|
|
|
. /lib/functions/system.sh
|
|
. /lib/functions.sh
|
|
|
|
# Load second MAC address from flash because we haven't any interface with this
|
|
# address where we can copy it from
|
|
|
|
ETHMESHMAC=$(macaddr_add $(mtd_get_mac_binary info 8) 1)
|