Commit Graph

5 Commits

Author SHA1 Message Date
dzzinstant
3638de5a4b Don't use the power button to enter gluon setup mode.
Using the power button for setup mode would work for the AVM 3370, but
may side effects on other devices. On devices with a dedicated
controller for power management, 'power pressed' and 'power
released' events might be consumed by the controller, or emitted at
unexpected times. This might lead to shutdowns failing, the device
randomly put into setup mode, or similar things.

Support for an outdated, non-mainstream device such as the AVM 3370
shouldn't invite such extra problems.

Moreover, the feature in question can also be added after the
installation, simply by editing
`/etc/hotplug.d/button/50-gluon-setup-mode`
and changing one line:
`
-if [ "$BUTTON" = wps ] || [ "$BUTTON" = reset ] || [ "$BUTTON" = phone ]; then
+if [ "$BUTTON" = wps ] || [ "$BUTTON" = reset ] || [ "$BUTTON" = phone ] || [ "$BUTTON" = power ]; then
`
2020-10-13 15:25:53 +02:00
dzzinstant
11a2358760 Add 'power' button to buttons which enable gluon-setup-mode.
Unlike other AVM devices, the Fritz!Box 3370 has got a 'Power' button
instead of 'WPS', 'DECT' or similar.
However, for a complete implementation of gluon it must be possible to
reboot the device into setup mode via pressing a button.

Notes:
1. The power button is used both for rebooting to setup mode (long press > 3s)
and switching off the device (short press).
This works because wait_setup_mode() is already started by 'power pressed', whereas
poweroff would be called later upon 'power released'.
2. Adding yet another button for setup mode isn't very pretty, esp. for the sake of one device.
However,
- there are only few devices (21/784) with a power button
- 302/784 devices have more than one button (reset + wps|phone) assigned to setup-mode,
  so the confusion is already there anyway.
2020-06-13 02:26:14 +02:00
Jan-Tarek Butt
dd76e0898d
treewide: solve shellcheck warnings 2019-12-14 18:35:11 +01:00
Misanthropos
b359ed1887 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).
2019-11-06 14:59:23 +01:00
Matthias Schiffer
f93e9b818f Split gluon-setup-mode package out of gluon-config-mode
gluon-config-mode retains the luci frontend, all setup scripts and config is
moved to the new package.
2014-07-05 20:11:41 +02:00