gluon-setup-mode: add DECT button to enter setup mode

many AVM devices do not have RESET/WPS buttons. So use the otherwise unused DECT/PHONE button to boot the device into setup mode.

This patch allows to enter the setup-mode by pressing the phone button
(often labeled as DECT) in addition to WPS and reset button.

This patch is necessary to allow supporting boards without a WPS and reset
button (e.g. AVM FRITZ!Box 7312).
This commit is contained in:
Misanthropos 2019-11-06 14:11:09 +01:00 committed by David Bauer
parent 7f858b1c6d
commit b359ed1887
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ Activating Config Mode
---------------------- ----------------------
Config Mode is automatically entered at the first boot. You can re-enter Config Mode is automatically entered at the first boot. You can re-enter
Config Mode by pressing and holding the RESET/WPS button for about three Config Mode by pressing and holding the RESET/WPS/DECT button for about three
seconds. The device should reboot (all LEDs will turn off briefly) and seconds. The device should reboot (all LEDs will turn off briefly) and
Config Mode will be available. Config Mode will be available.

View File

@ -12,7 +12,7 @@ wait_setup_mode() {
} }
if [ "$BUTTON" = wps -o "$BUTTON" = reset ]; then if [ "$BUTTON" = wps -o "$BUTTON" = reset -o "$BUTTON" = phone ]; then
case "$ACTION" in case "$ACTION" in
pressed) pressed)
wait_setup_mode & wait_setup_mode &