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'