First post here and I could use some help! I want to customize the wifitoggle configuration so that the physical toggle on my router can turn the wifi on and off.
I bought this GL-SFT1200 'https://a.co/d/gepB0rU' because it has a physical toggle that slides left and right. The features made it sound like I could customize the button within the router interface. It's true, it can be customized, but only with various VPN configurations by default.
After searching these forums, I found this helpful article: 'https://openwrt.org/docs/guide-user/network/wifi/wifi_toggle'
So I installed my first SSH client, installed Luci on the router, logged in, installed wifitoggle, and was able to see the config like so:
config 'wifitoggle'
option 'button' 'wps'
option 'persistent' '0'
option 'timer' '600'
option 'led_sysfs' 'wrt160nl:amber:wps'
option 'led_enable_trigger' 'timer'
option 'led_enable_delayon' '500'
option 'led_enable_delayoff' '500'
option 'led_disable_default' '0'
I was then able to edit the config with this: vim /etc/config/wifitoggle
and set it up with the following changes...
config 'wifitoggle'
option 'button' 'wps'
option 'persistent' '1'
option 'timer' '0'
option 'led_sysfs' 'wrt160nl:blue:wps'
option 'led_enable_trigger' 'persistent'
option 'led_enable_delayon' '500'
option 'led_enable_delayoff' '500'
option 'led_disable_default' '0'
I then followed some instructions to hit Esc, then :wq!
I believe it successfully saved the config file, but neither the toggle switch nor the only other button perform any changes.
I'm hoping to slide the toggle to one position where it turns off the wifi, changes the led from green to blue (it has both colors), but still leaves the LAN line active (thus why I cannot simply unplug the device).
I've learned a lot over the last few hours, but I feel I've wasted my whole evening with no results. I would greatly appreciate your expert help.
Powered by LuCI OpenWrt 18.06 r0-d5ed025