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 | ||
| docs:guide-user:hardware:hardware.button [2022/04/22 16:38] – [Examples] fix typo introt | docs:guide-user:hardware:hardware.button [2022/04/27 15:48] – [Attach functions to a push button] some1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| There several ways for controlling buttons in OpenWrt. | There several ways for controlling buttons in OpenWrt. | ||
| * [[# | * [[# | ||
| - | * [[# | + | * [[# |
| * [[# | * [[# | ||
| Line 224: | Line 224: | ||
| esac | esac | ||
| else | else | ||
| - | # if the statefile exists, assume wifi is off | ||
| if [ -e " | if [ -e " | ||
| GOAL=" | GOAL=" | ||
| else | else | ||
| + | # if the statefile doesn' | ||
| GOAL=" | GOAL=" | ||
| fi | fi | ||