I have an Archer C60 v1 and have AP + Guests on 2.4G and 5G. In the 5 I also have a client interface to have internet in case of an internet outage on the WAN. I have not been able to have the 3 Wi-Fi interfaces turned on in the 5G one. Therefore I use this command to turn off the main and guest AP and turn on the client Wi-Fi:
uci set wireless.telecentro.disabled="0" && uci set wireless.5g_ap.disabled="1" && uci set wireless.5g_ap_invitados.disabled="1" && uci commit wireless && wifi reload && uci set network.wan.disabled="1" && uci set network.telecentro.disabled="0" && uci commit network && service network restart
Another command to do the opposite:
uci set wireless.telecentro.disabled="1" && uci set wireless.5g_ap.disabled="0" && uci set wireless.5g_ap_invitados.disabled="0" && uci commit wireless && wifi reload && uci set network.wan.disabled="0" && uci set network.telecentro.disabled="1" && uci commit network && service network restart
I've tried entering these commands into the Commands app but can't get them to work.
@castillofrancodamian
A better approach would be to write the commands into executable scripts in /etc, which scripts you then launch via luci-app-commands
Ps.
How does the stored command from luci-app-commands actually show up in /etc/config/luci ?
config command
option name 'Encender Wi-Fi TeleCentro'
option command 'uci set wireless.telecentro.disabled="0";uci set wireless.5g_ap.disabled="1";uci set wireless.5g_ap_invitados.disabled="1";uci commit wireless;wifi reload;uci set network.wan.disabled="1";uci set network.telecentro.disabled="0";uci commit network;service network restart'
config command
option name 'Apagar Wi-Fi TeleCentro'
option command 'uci set wireless.telecentro.disabled="1";uci set wireless.5g_ap.disabled="0";uci set wireless.5g_ap_invitados.disabled="0";uci commit wireless;wifi reload;uci set network.wan.disabled="0";uci set network.telecentro.disabled="1";uci commit network;service network restart'
#!/bin/sh
uci -q set wireless.5g_invitados.disabled=1
uci -q set wireless.2g.disabled=0
uci -q set wireless.5g_sta.disabled=0
uci commit wireless
uci del network.cfg030f15.ports
service network restart
uci del dhcp.lan.ignore
uci commit dhcp
service dnsmasq restart
/etc/desactivar_telecentro.sh
#!/bin/sh
uci -q set wireless.5g_invitados.disabled=0
uci -q set wireless.2g.disabled=1
uci -q set wireless.5g_sta.disabled=1
uci commit wireless
uci add_list network.cfg030f15.ports='eth0.1'
service network restart
uci set dhcp.lan.ignore='1'
uci commit dhcp
service dnsmasq restart