Deal with lan on AR300M always having the same mac address

This commit is contained in:
Tim Wilkinson 2022-07-23 23:09:04 -07:00 committed by Joe AE6XE
parent b859a79127
commit 49a3d7738b
1 changed files with 2 additions and 1 deletions

View File

@ -21,7 +21,8 @@ boot() {
# Deal with lan and wifi having same mac address (common on TP-Link)
# Deal with lan mac + ~10 = wifi mac address (common on Microtik and
# breaks OLSR if using derived IP addresses)
if [ $macdelta -le 10 ]
# Deal with lan on AR300M always having the same mac address.
if [ $macdelta -le 10 -o $lanmac = "00:03:7F:11:23:C6" ]
then
local wifimacdigit=`printf "%X" $(((0x${wifimac:9:2} + 1) % 256))`
local newmac=${wifimac:0:9}${wifimacdigit}${wifimac:11}