SES Button
From DD-WRT Wiki
Revision as of 13:24, 26 March 2007 (edit) Cyberde (Talk | contribs) (Added a caution) ← Previous diff |
Current revision (10:46, 6 December 2019) (edit) (undo) Atatob (Talk | contribs) m (Add language list) |
||
(16 intermediate revisions not shown.) | |||
Line 1: | Line 1: | ||
+ | {{Languages|SES Button}} | ||
=Introduction= | =Introduction= | ||
- | The SES/AOSS/EZ-SETUP is the button you can find on your router. | + | The [[wikipedia:SecureEasySetup|SES]]/[[wikipedia:AOSS|AOSS]]/EZ-SETUP is the button you can find on your router. You can use that button to Enable/Disable Wireless or to execute scripts when it's pressed. |
+ | =Prerequisites= | ||
+ | In order to get the SES/AOSS/EZ-SETUP to work, you must have Reset Button ENABLED, located in the Administration -> Management section | ||
+ | |||
+ | |||
+ | [[Image:Resetbutton.png|Reset button]] | ||
=Turning on/off wireless= | =Turning on/off wireless= | ||
You can turn on/off the wireless transmit of your router by pressing this button. Ofcourse before that you have to enable the service for that. | You can turn on/off the wireless transmit of your router by pressing this button. Ofcourse before that you have to enable the service for that. | ||
- | Therefore go to | + | Therefore go to Services -> Services and tick Enable at the "SES / AOSS / EZ-SETUP Button" group |
[[Image:Ses radio.png|SES/AOSS/EZ-SETUP button setup]] | [[Image:Ses radio.png|SES/AOSS/EZ-SETUP button setup]] | ||
- | |||
=Run script when button pressed= | =Run script when button pressed= | ||
- | You can also run a script when the SES/AOSS/EZ-SETUP button is pressed, therefore have a look at [[Script Execution#Script types | Script types]] | + | You can also run a script when the SES/AOSS/EZ-SETUP button is pressed, therefore have a look at [[Script Execution#Script types | Script types]]. **Note:** You must have "Use this button for turning off radio" disabled (see section immediately above) |
+ | ===Example to test custom button script=== | ||
+ | The following instructions will create a script that will flash the DMZ LED 10 times when you press the SES/AOSS/EZ-SETUP button. | ||
+ | |||
+ | Type in the following commands: | ||
+ | mkdir /tmp/etc/config | ||
+ | |||
+ | Make a file blink.sesbutton with the following contents (e.g. "vi /tmp/etc/config/blink.sesbutton"): | ||
+ | |||
+ | for i in 1 2 3 4 5 6 7 8 9 10;do | ||
+ | gpio disable 7 | ||
+ | usleep 50000 | ||
+ | gpio enable 7 | ||
+ | usleep 50000 | ||
+ | done | ||
+ | |||
+ | chmod 744 /tmp/etc/config/blink.sesbutton | ||
+ | |||
+ | Now when you press the SES/AOSS/EZ-SETUP button the DMZ light will flash 10 times. | ||
=Caution= | =Caution= | ||
- | Pressing the AOSS button | + | Pressing the AOSS button on a WHR-HP-G54 while booting may brick the router. |
''See http://dd-wrt.com/phpBB2/viewtopic.php?t=11658 for more info'' | ''See http://dd-wrt.com/phpBB2/viewtopic.php?t=11658 for more info'' | ||
+ | There is also a risk that it will break the radio on the WHR-HP-G54 without bricking the router. | ||
- | = | + | "See http://www.dd-wrt.com/phpBB2/viewtopic.php?t=60827 for more info" |
- | [[Useful Scripts]] | + | =Links= |
- | + | *[[Useful Scripts]] | |
- | [[Startup Scripts]] | + | *[[Startup Scripts]] |
- | [[Category: | + | [[Category:Networking hardware]] |
+ | [[Category:Scripts]] |
Current revision
English • Deutsch • Español • Français • Italiano • 日本語 • Polski • Português • Русский • Svenska • 中文(中国大陆) • 中文(台灣) • |
Contents |
[edit] Introduction
The SES/AOSS/EZ-SETUP is the button you can find on your router. You can use that button to Enable/Disable Wireless or to execute scripts when it's pressed.
[edit] Prerequisites
In order to get the SES/AOSS/EZ-SETUP to work, you must have Reset Button ENABLED, located in the Administration -> Management section
[edit] Turning on/off wireless
You can turn on/off the wireless transmit of your router by pressing this button. Ofcourse before that you have to enable the service for that. Therefore go to Services -> Services and tick Enable at the "SES / AOSS / EZ-SETUP Button" group
[edit] Run script when button pressed
You can also run a script when the SES/AOSS/EZ-SETUP button is pressed, therefore have a look at Script types. **Note:** You must have "Use this button for turning off radio" disabled (see section immediately above)
[edit] Example to test custom button script
The following instructions will create a script that will flash the DMZ LED 10 times when you press the SES/AOSS/EZ-SETUP button.
Type in the following commands:
mkdir /tmp/etc/config
Make a file blink.sesbutton with the following contents (e.g. "vi /tmp/etc/config/blink.sesbutton"):
for i in 1 2 3 4 5 6 7 8 9 10;do gpio disable 7 usleep 50000 gpio enable 7 usleep 50000 done
chmod 744 /tmp/etc/config/blink.sesbutton
Now when you press the SES/AOSS/EZ-SETUP button the DMZ light will flash 10 times.
[edit] Caution
Pressing the AOSS button on a WHR-HP-G54 while booting may brick the router.
See http://dd-wrt.com/phpBB2/viewtopic.php?t=11658 for more info
There is also a risk that it will break the radio on the WHR-HP-G54 without bricking the router.
"See http://www.dd-wrt.com/phpBB2/viewtopic.php?t=60827 for more info"