Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| inbox:howto:howtoshutdownthenslu2usingthehardwarebutton [2011/01/08 17:13] – pt | toh:linksys:nslu2:nslu2.hardware.button [2018/03/03 20:46] – ↷ Links adapted because of a move operation | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== The Hardware Button of the NSLU2 ====== | ||
| + | The NSLU2 has a hardware power on-/power off-button. | ||
| + | {{ http:// | ||
| + | |||
| + | As any other hardware button, its function can be configured in OpenWrt. In order to use the hardware button of the NSLU2 to shut it down/ switch if off, follow the steps below: | ||
| + | |||
| + | ====== Configuration Steps ====== | ||
| + | -> [[docs: | ||
| + | |||
| + | ===== 1. edit / | ||
| + | |||
| + | add the following line to the / | ||
| + | |||
| + | |< | ||
| + | :: | ||
| + | </ | ||
| + | |||
| + | The file / | ||
| + | |||
| + | |< | ||
| + | :: | ||
| + | :: | ||
| + | tts/ | ||
| + | ttyS0:: | ||
| + | tty1:: | ||
| + | :: | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== 2. create a file including the commands below and save it under /bin ===== | ||
| + | |||
| + | on the console type | ||
| + | < | ||
| + | root@nslu2: | ||
| + | vi / | ||
| + | </ | ||
| + | |||
| + | and enter the following lines of code | ||
| + | |||
| + | |< | ||
| + | |||
| + | #!/bin/sh / | ||
| + | |||
| + | / | ||
| + | / | ||
| + | |||
| + | </ | ||
| + | |||
| + | These lines first stop all running services and then shut the NSLU2 down. | ||
| + | |||
| + | Finally, make the file / | ||
| + | < | ||
| + | chmod 750 / | ||
| + | </ | ||
| + | |||
| + | You are done. After a reboot you should be able to use the power off-button. | ||
| + | |||
| + | |||
| + | ===== Sources ===== | ||
| + | http:// | ||
| + | |||
| + | Further information on the NSLU2 can be found here: http:// | ||