# Configuring the "switch button" to disable wifi radio

**URL:** <https://forum.gl-inet.com/t/configuring-the-switch-button-to-disable-wifi-radio/3253>\
**Category:** Router\
**Created:** [April 4, 2018, 5:47pm UTC](https://forum.gl-inet.com/t/configuring-the-switch-button-to-disable-wifi-radio/3253 "2018-04-04T17:47:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravenize](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/r/34f0e0/32.png) [@ravenize](https://forum.gl-inet.com/u/ravenize)\
**Post date:** [April 4, 2018, 5:47pm UTC](https://forum.gl-inet.com/t/configuring-the-switch-button-to-disable-wifi-radio/3253/1 "2018-04-04T17:47:15Z")

</div>

How do I go about configuring the switch on the GL-MT300N-V1 to disable the wifi radio under /rc.button/ ?

What are the exact commands?

This would be a great feature by default.

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [April 5, 2018, 4:47am UTC](https://forum.gl-inet.com/t/configuring-the-switch-button-to-disable-wifi-radio/3253/2 "2018-04-05T04:47:16Z")

</div>

Is this really necessary? I am afraid some people accidentally turned off the wifi and will blame the router defective.

I have some hints in another post.

> [@FEATURE REQ: WiFi on/off with side switch?](https://forum.gl-inet.com/t/feature-req-wifi-on-off-with-side-switch/2896/6):
>
> Here is how you can do it, manually. Find /etc/init.d/initswitch Turn on wifi when switch on left side Line 57: "noop") ;; \*) uci set wirless.@wifi-iface[0].disabled=0 uci commit wireless wifi on ;; Turn off wifi when switch on left side Line 70 (before editing): "noop") ;; \*) uci set wirless.@wifi-iface[0].disabled=1 uci commit wireless wifi off ;;

---

<div class="post-metadata">

**Author:** ![ravenize](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/r/34f0e0/32.png) [@ravenize](https://forum.gl-inet.com/u/ravenize)\
**Post date:** [April 5, 2018, 6:40am UTC](https://forum.gl-inet.com/t/configuring-the-switch-button-to-disable-wifi-radio/3253/3 "2018-04-05T06:40:06Z")

</div>

I had plugged the wan into the lan and the lan into the wan and spent 20 minutes trying to figure it out. Is it necessary to create a lesser product for everyone, just for some stupid minds? It would be a great feature. I disable all my wifi devices before I sleep so I don’t fry my brains anymore than they already are; Thank you so much.

Here is what the staff had told me in email:

The correct script for the switch button is /etc/init.d/initswitch

You can have a try to edit the script. Add the red text

Turn on wifi when switch on left side

Line 57:

```
"noop")
;;
*)
uci set wirless.@wifi-iface[0].disabled=0
uci commit wireless
wifi on
;;

```

Turn off wifi when switch on left side  
Line 70 (before editing):  
“noop”)  
;;  
\*)  
uci set wirless.@wifi-iface[0].disabled=1  
uci commit wireless  
wifi off  
;;

---

<div class="post-metadata">

**Author:** ![Crazycat36](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/c/22d042/32.png) [@Crazycat36](https://forum.gl-inet.com/u/Crazycat36)\
**Post date:** [May 31, 2018, 5:26am UTC](https://forum.gl-inet.com/t/configuring-the-switch-button-to-disable-wifi-radio/3253/4 "2018-05-31T05:26:35Z")

</div>

I’ve been thinking about configuring the switch to turn on and off a wireguard connection. I would love to learn how to do it.

---

<div class="post-metadata">

**Author:** ![ta1](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/t/51bf81/32.png) [@ta1](https://forum.gl-inet.com/u/ta1)\
**Post date:** [August 25, 2021, 7:53pm UTC](https://forum.gl-inet.com/t/configuring-the-switch-button-to-disable-wifi-radio/3253/5 "2021-08-25T19:53:12Z")

</div>

Can you explain how to edit this file. I can’t seem to access root

---

<div class="post-metadata">

**Author:** ![alzhao](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/a/5f9b8f/32.png) [@alzhao](https://forum.gl-inet.com/u/alzhao)\
**Post date:** [August 26, 2021, 2:49am UTC](https://forum.gl-inet.com/t/configuring-the-switch-button-to-disable-wifi-radio/3253/6 "2021-08-26T02:49:59Z")

</div>

use winscp to edit files [Modify files on the router - GL.iNet Docs](https://docs.gl-inet.com/en/3/tutorials/scp/)

---

<div class="post-metadata">

**Author:** ![ta1](https://forum-assets.gl-inet.com/letter_avatar_proxy/v4/letter/t/51bf81/32.png) [@ta1](https://forum.gl-inet.com/u/ta1)\
**Post date:** [August 26, 2021, 1:15pm UTC](https://forum.gl-inet.com/t/configuring-the-switch-button-to-disable-wifi-radio/3253/7 "2021-08-26T13:15:32Z")

</div>

Thank you, I have already edited the files appropriately and got it working. I just don’t think that should be the only option.

Seeing how many times it has been requested i thought they would do something by now

---

<div class="post-metadata">

**Author:** ![bruce](https://forum-assets.gl-inet.com/user_avatar/forum.gl-inet.com/bruce/32/35649_2.png) [@bruce](https://forum.gl-inet.com/u/bruce)\
**Post date:** [October 29, 2025, 4:14am UTC](https://forum.gl-inet.com/t/configuring-the-switch-button-to-disable-wifi-radio/3253/8 "2025-10-29T04:14:40Z")

</div>


