Hi,
I have guest wifi setup at home, can I map to WPS button to enable/disable the guest wifi (not the radio, because the main wifi should be on all the time) e.g. linksys router EA3500 with openwrt?
Thanks
Hi,
I have guest wifi setup at home, can I map to WPS button to enable/disable the guest wifi (not the radio, because the main wifi should be on all the time) e.g. linksys router EA3500 with openwrt?
Thanks
You could adapt this according to your needs.
Thank you, it works as expected. How to modify the script if I want to turn on/off guest wifi only by pressing and hold WPS button for >3s?
#!/bin/sh
[ "$ACTION" = "released" -a "$BUTTON" = "wps" ] || exit 0
{
disabled="$(uci -q get wireless.wifinet2.disabled)"
[ "${disabled}" = "1" ] \
&& uci set wireless.wifinet2.disabled='0' \
|| uci set wireless.wifinet2.disabled='1'
uci commit wireless
wifi reload
}
exit 0
[ "$ACTION" = "released" -a "$BUTTON" = "wps" -a "$SEEN" -gt 3 ] || exit 0
Works! Thanks
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.