SES / AOSS / EZ-SETUP / WPS Button function/config (2025)

A forum to discuss the Gargoyle web interface for Openwrt

Skip to content

  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board indexDevelopmentFeature Requests
  • Search

Moderator: Moderators

Post Reply

  • Print view

7 posts• Page 1 of 1

Wurstsalat
Posts: 2
Joined: Wed Feb 20, 2013 4:06 pm

SES / AOSS / EZ-SETUP / WPS Button function/config

  • Quote

Postby Wurstsalat »

Hi,

would like to see that the SES / AOSS / EZ-SETUP / WPS Button on some Routers are able to disable/enable wifi like in ddwrt.

Thats it SES / AOSS / EZ-SETUP / WPS Button function/config (1)

Top

mtr
Posts: 29
Joined: Sun Oct 28, 2012 1:14 pm

Re: SES / AOSS / EZ-SETUP / WPS Button function/config

  • Quote

Postby mtr »

wifitoggle package can do that.

Wiki: http://wiki.openwrt.org/doc/uci/wifitoggle

Top

zhmjwo
Posts: 3
Joined: Tue May 06, 2014 1:51 am

Re: SES / AOSS / EZ-SETUP / WPS Button function/config

  • Quote

Postby zhmjwo »

FireVortex wrote:wifitoggle package can do that.

Wiki: http://wiki.openwrt.org/doc/uci/wifitoggle

wifitoggle can not use.After pressed the botton for turning
wifi on once,it will automatically switch off every 15 minutes.

Top

mtr
Posts: 29
Joined: Sun Oct 28, 2012 1:14 pm

Re: SES / AOSS / EZ-SETUP / WPS Button function/config

  • Quote

Postby mtr »

zhmjwo wrote:

FireVortex wrote:wifitoggle package can do that.

Wiki: http://wiki.openwrt.org/doc/uci/wifitoggle

wifitoggle can not use.After pressed the botton for turning
wifi on once,it will automatically switch off every 15 minutes.

Oh, right. Well, I use a custom made "wifionoff" shell script (wifionoff.sh.gz). I attached it to this message. Feel free to download and test.

To get it running you must:

1º) Unzip the file wifionoff.sh.gz
2º) Copy wifionoff.sh to /usr/bin/ on your router
3º) Give execute permission to the script with: chmod +x wifionoff.sh
4º) Copy the following code and paste it in your /etc/config/system file

Code: Select all

config button 'wifionoff'option button 'wps'option action 'released'option handler '/usr/bin/wifionoff.sh &'option min '0'option max '2'

5º) Restart your router
6º) Profit!!

NOTE: the script is running and working fine on my TP-LINK TL1043ND v1.8 so pay attention to the field option button 'wps' because the 'wps' string may change in another router models or brands.
Take a look to the documentation: http://wiki.openwrt.org/doc/howto/hardware.button

Attachments
wifionoff.sh.gz
WiFi On/Off Shell Script
(220 Bytes) Downloaded 578 times

Top

zhmjwo
Posts: 3
Joined: Tue May 06, 2014 1:51 am

Re: SES / AOSS / EZ-SETUP / WPS Button function/config

  • Quote

Postby zhmjwo »

FireVortex wrote:

zhmjwo wrote:

FireVortex wrote:wifitoggle package can do that.

Wiki: http://wiki.openwrt.org/doc/uci/wifitoggle

wifitoggle can not use.After pressed the botton for turning
wifi on once,it will automatically switch off every 15 minutes.

Oh, right. Well, I use a custom made "wifionoff" shell script (wifionoff.sh.gz). I attached it to this message. Feel free to download and test.

To get it running you must:

1º) Unzip the file wifionoff.sh.gz
2º) Copy wifionoff.sh to /usr/bin/ on your router
3º) Give execute permission to the script with: chmod +x wifionoff.sh
4º) Copy the following code and paste it in your /etc/config/system file

Code: Select all

config button 'wifionoff'option button 'wps'option action 'released'option handler '/usr/bin/wifionoff.sh &'option min '0'option max '2'

5º) Restart your router
6º) Profit!!

NOTE: the script is running and working fine on my TP-LINK TL1043ND v1.8 so pay attention to the field option button 'wps' because the 'wps' string may change in another router models or brands.
Take a look to the documentation: http://wiki.openwrt.org/doc/howto/hardware.button

Thanks.the script is also running and working fine on my TP-LINK WR741N v1.6 SES / AOSS / EZ-SETUP / WPS Button function/config (2)

In my /etc/config/system file,I find that the "wps" button was used for rebooting in default config. So I delete the default config of "wps" button.

Top

mtr
Posts: 29
Joined: Sun Oct 28, 2012 1:14 pm

Re: SES / AOSS / EZ-SETUP / WPS Button function/config

  • Quote

Postby mtr »

zhmjwo wrote:Thanks.the script is also running and working fine on my TP-LINK WR741N v1.6 SES / AOSS / EZ-SETUP / WPS Button function/config (3)

In my /etc/config/system file,I find that the "wps" button was used for rebooting in default config. So I delete the default config of "wps" button.

You're welcome!! SES / AOSS / EZ-SETUP / WPS Button function/config (4)

As a side note: you can have as many 'wps' entries as you want. For example, this is a chunk of my system config file:

Code: Select all

config button 'wifionoff'option button 'wps'option action 'released'option handler '/usr/bin/wifionoff.sh &'option min '0'option max '2'config button 'restart_wan_connection'option button 'wps'option action 'released'option handler '/usr/bin/restartwan.sh &'option min '3'option max '5'config button 'reboot_button'option button 'wps'option action 'released'option handler 'logger reboot ; /usr/lib/gargoyle/reboot.sh ;'option min '6'option max '90'

The "secret" is, basically, set the min and max options. So, following the example above:

If I press the WPS button:

  • Between 0 and 2 secs ---> Toggle WiFi
    Between 3 and 5 secs ---> Restart WAN
    Between 6 and 90 secs ---> Reboot router

Last edited by mtr on Sat May 10, 2014 10:45 am, edited 1 time in total.

Top

zhmjwo
Posts: 3
Joined: Tue May 06, 2014 1:51 am

Re: SES / AOSS / EZ-SETUP / WPS Button function/config

  • Quote

Postby zhmjwo »

FireVortex wrote:
As a side note: you can have as many 'wps' entries as you want. For example, this is a chunk of my system config file:

Code: Select all

config button 'wifionoff'option button 'wps'option action 'released'option handler '/usr/bin/wifionoff.sh &'option min '0'option max '2'config button 'restart_wan_connection'option button 'wps'option action 'released'option handler '/usr/bin/restartwan.sh &'option min '3'option max '5'config button 'reboot_button'option button 'wps'option action 'released'option handler 'logger reboot ; /usr/lib/gargoyle/reboot.sh ;'option min '6'option max '90'

The "secret" is, basically, set the min and max options. So, following the example above:

If a press the WPS button:

  • Between 0 and 2 secs ---> Toggle WiFi
    Between 3 and 5 secs ---> Restart WAN
    Between 6 and 90 secs ---> Reboot router

Great!
I am learning more. SES / AOSS / EZ-SETUP / WPS Button function/config (5)

Top

Post Reply

  • Print view

7 posts• Page 1 of 1

Return to “Feature Requests”

Jump to

  • News
  • General
  • ↳ General Discussion
  • ↳ Off Topic
  • Troubleshooting / Report Bugs
  • ↳ Hardware / Installation Issues
  • ↳ Network / Wireless Issues
  • ↳ Monitoring / Quota / QoS Issues
  • ↳ Other Issues
  • Development
  • ↳ Feature Requests
  • ↳ Show / Tell / Contribute
  • ↳ Gargoyle Development
  • Board index
  • All times are UTC-04:00
  • Delete cookies

Powered by phpBB® Forum Software © phpBB Limited

Privacy|Terms

SES / AOSS / EZ-SETUP / WPS Button function/config (2025)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: Geoffrey Lueilwitz

Last Updated:

Views: 6290

Rating: 5 / 5 (60 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Geoffrey Lueilwitz

Birthday: 1997-03-23

Address: 74183 Thomas Course, Port Micheal, OK 55446-1529

Phone: +13408645881558

Job: Global Representative

Hobby: Sailing, Vehicle restoration, Rowing, Ghost hunting, Scrapbooking, Rugby, Board sports

Introduction: My name is Geoffrey Lueilwitz, I am a zealous, encouraging, sparkling, enchanting, graceful, faithful, nice person who loves writing and wants to share my knowledge and understanding with you.