Hello there ![]()
For those who have the issue that the switch button position is not taken into account on init / start up, here is another way to use your switch button as a wifi toggler .
- Connect to your router with ssh :
sh root@ip
- Install wifitoggle package :
opkg update && opkg install wifitoggle
(more info : [OpenWrt Wiki] Wi-Fi on/off buttons)
- Set these settings for the wifitoggle package :
note: BTN_8 works for the GL-AR300M, you might need to change it
uci set wifitoggle.@wifitoggle[0].button=‘BTN_8’
uci set wifitoggle.@wifitoggle[0].persistent=‘1’
uci set wifitoggle.@wifitoggle[0].timer=‘0’
uci commit
( 4. should be optional, reboot router :
reboot
)
- Verify settings are applied :
uci show wifitoggle
you should see :
root@xxx:~# uci show wifitoggle
wifitoggle.@wifitoggle[0]=wifitoggle
wifitoggle.@wifitoggle[0].led_enable_trigger=‘timer’
wifitoggle.@wifitoggle[0].led_enable_delayon=‘500’
wifitoggle.@wifitoggle[0].led_enable_delayoff=‘500’
wifitoggle.@wifitoggle[0].led_disable_default=‘0’
wifitoggle.@wifitoggle[0].button=‘BTN_8’
wifitoggle.@wifitoggle[0].persistent=‘1’
wifitoggle.@wifitoggle[0].timer=‘0’
and the router button is now a wifi toggle and keeps state after rebooting the router!