forked from freifunk-franken/firmware
Adrian Schmutzler
aa42a39ce2
At the moment, the ETHMESHMAC for the TL-WR1043ND v4 is loaded from
the config partition. The data there is written by the stock firmware,
and thus is dependent on the version installed before and may even
vary in position.
Instead, this patch uses the product-info partition, which is not
modified by stock firmware.
While at it, update the sourced library files and the comment for
both v4 and v5.
ref: 53839da46e
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Reviewed-by: Fabian Bläse <fabian@blaese.de>
17 lines
387 B
Plaintext
17 lines
387 B
Plaintext
PORTORDER="5 4 3 2 1"
|
|
|
|
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 product-info 8) 1)
|
|
ROUTERMAC=$(cat /sys/class/net/eth0/address)
|