mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-09 02:43:53 +08:00
mediatek: fix xdr608x wifi mac addr settings
This commit is contained in:
parent
f130079301
commit
d3ab1bf5e6
@ -91,6 +91,16 @@ mediatek_setup_macs()
|
|||||||
tplink,tl-xdr6088)
|
tplink,tl-xdr6088)
|
||||||
wan_mac=$(mtd_get_mac_binary config 0x1c)
|
wan_mac=$(mtd_get_mac_binary config 0x1c)
|
||||||
lan_mac=$(macaddr_add "$wan_mac" 1)
|
lan_mac=$(macaddr_add "$wan_mac" 1)
|
||||||
|
local b0dat="$(l1dat if2dat ra0)"
|
||||||
|
local b1dat="$(l1dat if2dat rax0)"
|
||||||
|
if [ -f ${b0dat} ] && ! grep -q "MacAddress=" ${b0dat}; then
|
||||||
|
local b0mac="$(macaddr_add $label_mac 2)"
|
||||||
|
echo "MacAddress=$b0mac" >> ${b0dat}
|
||||||
|
fi
|
||||||
|
if [ -f ${b1dat} ] && ! grep -q "MacAddress=" ${b1dat}; then
|
||||||
|
local b1mac="$(macaddr_add $label_mac 3)"
|
||||||
|
echo "MacAddress=$b1mac" >> ${b1dat}
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
xiaomi,redmi-router-ax6000*)
|
xiaomi,redmi-router-ax6000*)
|
||||||
wan_mac=$(mtd_get_mac_ascii Bdata ethaddr_wan)
|
wan_mac=$(mtd_get_mac_ascii Bdata ethaddr_wan)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user