Change the repeater mac address

Hello,

I am using GL-AR750 as a repeater.

me > GL-AR750 > public router

Currently I am resetting the mac address from the admin panel.

Is there a way to create and reset the mac address of the GL-AR750 > public router part? Ideally shell script.

So my connection between me and GL-AR750 is not interrupted?

This is what I currently using to reset the mac address, but working

new_mac=$(openssl rand -hex 6 | sed "s/\(..\)/\1:/g; s/./0/2; s/.$//")
echo "New MAC: $new_mac"
uci set network.wan.macaddr=$new_mac
uci show network.wan.macaddr
uci commit network
/etc/init.d/network reload
/etc/init.d/network restart

The repeater mac address shouldbe changed in wireless.sta