base-files: add reboot only button handler
authorAlan Swanson <reiver@improbability.net>
Wed, 29 May 2019 10:28:33 +0000 (11:28 +0100)
committerPetr Štetiar <ynezz@true.cz>
Thu, 30 May 2019 09:55:49 +0000 (11:55 +0200)
commit70c7a0c33e3789fcc13b868bd41ffbd59ea999f1
treecaa31d40b54b2188ce8772d532fee60b01e50c35
parent6a92eb5b382860017fd00cd05350a648c4a4ac56
base-files: add reboot only button handler

For devices such as BTHOMEHUBV5A with both reset and restart buttons,
its easily accessible restart button has been assigned to KEY_POWER
power script to poweroff preventing accidental (or malicious) factory
resets by KEY_RESTART reset script. However an easily accessible button
immediately powering off the device is also undesirable.

Fixes: FS#1965
Signed-off-by: Alan Swanson <reiver@improbability.net>
Signed-off-by: Petr Štetiar <ynezz@true.cz> [long line wrap]
package/base-files/files/etc/rc.button/reboot [new file with mode: 0755]