Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[system] pushbutton now supports restoring stock firmware

  • Loading branch information...
commit 1017d994801929150b18c98c30ee4e58f81f58d0 1 parent a9cf632
@icarus75 icarus75 authored
Showing with 10 additions and 3 deletions.
  1. +3 −3 docs/manual/introduction.tex
  2. +7 −0 openwrt/files/etc/config/system
View
6 docs/manual/introduction.tex
@@ -18,13 +18,13 @@ \subsection{Power Jack}
\section{Pushbutton}
\label{sec:introduction_pushbutton}
-The pushbutton has a dual function. Which function will be triggered depends on how long the button is pressed.
+The pushbutton has a triple function. Which function will be triggered depends on how long the button is pressed.
\begin{description}
\item[Toggle reporting mode] If you press the button for 2 to 5 seconds, the Fluksometer will toggle its reporting mode to the Flukso server from wifi to ethernet or vice-versa.
-\item[Restore defaults] If you press the button between 10 and 30 seconds, the Fluksometer will restore its default network settings.
-
+\item[Restore networking defaults] If you press the button between 10 and 30 seconds, the Fluksometer will restore its default network settings.
+\item[Restore firmware] Keep the button pressed for between 60 and 120 seconds to restore the Fluksometer's stock firmware\footnote{supported from r216 onwards}. You will have to reconfigure all network and sensor settings. Connect to the local web interface after the heartbeat LED starts blinking again.
\end{description}
View
7 openwrt/files/etc/config/system
@@ -20,3 +20,10 @@ config button
option handler net_defaults
option min 10
option max 30
+
+config button
+ option button reset
+ option action released
+ option handler 'mtd -r erase rootfs_data'
+ option min 60
+ option max 120
Please sign in to comment.
Something went wrong with that request. Please try again.