forked from freifunk-franken/firmware
![Tim Niemeyer](/assets/img/avatar_default.png)
Series-to: ffol Series-version: 1 Series-name: for_0.5.0 Cover-letter: This patchset is meant to be applied to a branch which stores the changes for the upcoming 0.5.0 release. It hold also all patches from my last set for 0.4.2. This sets bumps up our OpenWRT base version. Currently not working: - Network on WDR3500 have wrong VLAN-IDs Currently untested: - All WRxxx and DIR300/Fonera boards END Series-changes: 1 - First version of this Patchset Signed-off-by: Tim Niemeyer <tim.niemeyer@mastersword.de>
14 lines
362 B
Plaintext
14 lines
362 B
Plaintext
WLAN0_MACADDR=$(cat /sys/class/net/w5mesh/address)
|
|
BRMESH_MACADDR=$(cat /sys/class/net/br-mesh/address)
|
|
|
|
if [[ "$WLAN0_MACADDR=" != "$BRMESH_MACADDR=" ]]; then
|
|
echo "Fixing wrong MAC on br-mesh"
|
|
uci set network.mesh.macaddr=$WLAN0_MACADDR
|
|
uci commit
|
|
ifconfig br-mesh hw ether $WLAN0_MACADDR
|
|
ifconfig br-mesh down
|
|
ifconfig br-mesh up
|
|
fi
|
|
|
|
# vim: noexpandtab
|