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 `
This commit is contained in:
parent
e35db0d8c1
commit
3638de5a4b
@ -12,8 +12,7 @@ wait_setup_mode() {
|
||||
}
|
||||
|
||||
|
||||
if [ "$BUTTON" = wps ] || [ "$BUTTON" = reset ] ||
|
||||
[ "$BUTTON" = phone ] || [ "$BUTTON" = power ]; then
|
||||
if [ "$BUTTON" = wps ] || [ "$BUTTON" = reset ] || [ "$BUTTON" = phone ]; then
|
||||
case "$ACTION" in
|
||||
pressed)
|
||||
wait_setup_mode &
|
||||
|
Loading…
Reference in New Issue
Block a user