forked from freifunk-franken/firmware
Fix mac adress conflict on wlan0-1 und eth0.3 on wr1043nd. This also fixes the bad link quality problem on the wr1043nd
Signed-off-by: Clemens John <clemens-john@gmx.de>
This commit is contained in:
parent
f6fe4f81c5
commit
c1ee3a6d45
|
@ -1,17 +1,3 @@
|
|||
|
||||
if uci get network.ethmesh.macaddr
|
||||
then
|
||||
echo "MAC for ETH-BATMAN is set already"
|
||||
else
|
||||
echo "Fixing MAC on eth0.3 (ethmesh)"
|
||||
NEW=$(awk -F: '{ printf("%02x:%02x:%02x:%02x:%02x:%02x\n", ("0x"$1)+2, "0x"$2, "0x"$3, "0x"$4, "0x"$5, "0x"$6 ) }' /sys/class/net/eth0/address)
|
||||
uci set network.ethmesh.macaddr=$NEW
|
||||
uci commit
|
||||
ifconfig eth0.3 hw ether $NEW
|
||||
ifconfig eth0.3 down
|
||||
ifconfig eth0.3 up
|
||||
fi
|
||||
|
||||
batctl if add wlan0-1
|
||||
batctl if add eth0.3
|
||||
|
||||
|
|
Loading…
Reference in New Issue