From c1ee3a6d45aee292d63e4c96616084de799cea29 Mon Sep 17 00:00:00 2001 From: Clemens John Date: Fri, 8 Nov 2013 23:46:49 +0100 Subject: [PATCH] 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 --- bsp/wr1043nd/root_file_system/etc/rc.local.board | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/bsp/wr1043nd/root_file_system/etc/rc.local.board b/bsp/wr1043nd/root_file_system/etc/rc.local.board index a402c66..d15d7a8 100755 --- a/bsp/wr1043nd/root_file_system/etc/rc.local.board +++ b/bsp/wr1043nd/root_file_system/etc/rc.local.board @@ -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 -