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 -