From b359ed1887b7485f93e7525ef52b29353ec63a0e Mon Sep 17 00:00:00 2001 From: Misanthropos Date: Wed, 6 Nov 2019 14:11:09 +0100 Subject: [PATCH] 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). --- docs/features/configmode.rst | 2 +- .../files/etc/hotplug.d/button/50-gluon-setup-mode | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/features/configmode.rst b/docs/features/configmode.rst index 2a09ecd8..2431b0d2 100644 --- a/docs/features/configmode.rst +++ b/docs/features/configmode.rst @@ -14,7 +14,7 @@ Activating Config Mode ---------------------- 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 Config Mode will be available. diff --git a/package/gluon-setup-mode/files/etc/hotplug.d/button/50-gluon-setup-mode b/package/gluon-setup-mode/files/etc/hotplug.d/button/50-gluon-setup-mode index 9a1ccf2f..3a3cb20f 100755 --- a/package/gluon-setup-mode/files/etc/hotplug.d/button/50-gluon-setup-mode +++ b/package/gluon-setup-mode/files/etc/hotplug.d/button/50-gluon-setup-mode @@ -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 pressed) wait_setup_mode &