I have an Archer C60 that I use as an AP but with a script I turn it into a repeater when necessary
root@archer_c60:~# cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'pci0000:00/0000:00:00.0'
option band '5g'
option htmode 'VHT80'
option country 'AR'
option cell_density '0'
option channel '36'
config wifi-device 'radio1'
option type 'mac80211'
option path 'platform/ahb/18100000.wmac'
option band '2g'
option htmode 'HT20'
option cell_density '0'
option channel '6'
config wifi-iface '2g'
option device 'radio1'
option network 'lan'
option mode 'ap'
option ssid 'LAG'
option ifname '2g'
option encryption 'psk2+ccmp'
option key 'pass'
option disabled '1'
config wifi-iface '5g_sta'
option device 'radio0'
option mode 'sta'
option ssid 'TeleCentro Wifi'
option encryption 'none'
option ifname '5g_sta'
option macaddr '18:D6:C7:11:B3:6C'
option network 'telecentro'
option disabled '1'
config wifi-iface '2g_invitados'
option device 'radio1'
option mode 'ap'
option ssid 'Invitados'
option encryption 'psk2+ccmp'
option ifname '2g_invitados'
option key 'pass'
option network 'lan'
option disabled '1'
config wifi-iface '2g_wds'
option device 'radio1'
option mode 'ap'
option ssid 'WDS'
option encryption 'psk2+ccmp'
option wds '1'
option ifname '2g_wds'
option key 'pass'
option network 'lan'
option hidden '1'
config wifi-iface 'wifinet5'
option device 'radio1'
option mode 'ap'
option ssid '🦁 #Milei2023 🦁'
option encryption 'psk2+ccmp'
option ifname '2g_milei'
option key 'pass'
option network 'lan'
root@archer_c60:~# cat /etc/act_tel.sh
#!/bin/sh
uci -q set wireless.5g_sta.disabled=0
uci -q set wireless.2g.disabled=0
uci -q set wireless.2g_invitados.disabled=0
uci commit wireless
uci del network.cfg030f15.ports
uci set network.lan.defaultroute='0'
uci commit network
uci del dhcp.lan.ignore
uci commit dhcp
service network restart
service dnsmasq restart
service firewall restart
root@archer_c60:~# cat /etc/des_tel.sh
#!/bin/sh
uci -q set wireless.5g_sta.disabled=1
uci -q set wireless.2g.disabled=1
uci -q set wireless.2g_invitados.disabled=1
uci commit wireless
uci add_list network.cfg030f15.ports='eth0.1'
uci del network.lan.defaultroute
uci commit network
uci set dhcp.lan.ignore='1'
uci commit dhcp
service network restart
service dnsmasq restart
service firewall restart
The problem is that when I run the script to make it work as a repeater, dnsmasq doesn't do its job and I have to restart the service manually, even though I have the line in the script to restart it.