From 49a3d7738b1a5fe2ef3f633f94f10b96965240dc Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Sat, 23 Jul 2022 23:09:04 -0700 Subject: [PATCH] Deal with lan on AR300M always having the same mac address --- files/etc/init.d/local | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/etc/init.d/local b/files/etc/init.d/local index 7ee31e5e..3c2fb76b 100755 --- a/files/etc/init.d/local +++ b/files/etc/init.d/local @@ -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}