aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-oxnas/src/common
diff options
context:
space:
mode:
authorAlan Swanson <reiver@improbability.net>2019-05-29 11:39:30 +0100
committerPetr Štetiar <ynezz@true.cz>2019-05-30 11:55:50 +0200
commit5422fed7875a44b0dfd90685c5826f3e28a119f7 (patch)
tree30c4bd9f85a6fbbee611ba342cd7ee54a84d2de7 /package/boot/uboot-oxnas/src/common
parenta46259787d019eac7abc9be6711381159785b536 (diff)
downloadupstream-5422fed7875a44b0dfd90685c5826f3e28a119f7.tar.gz
upstream-5422fed7875a44b0dfd90685c5826f3e28a119f7.tar.bz2
upstream-5422fed7875a44b0dfd90685c5826f3e28a119f7.zip
gpio-button-hotplug: add KEY_POWER2 handling
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. As KEY_RESTART is already used for reset script (and there's no KEY_REBOOT in Linux input events), use KEY_POWER2 for rebooting via new reboot script with 5 second seen delay. Fixes: FS#1965 Signed-off-by: Alan Swanson <reiver@improbability.net> Signed-off-by: Petr Štetiar <ynezz@true.cz> [long line wrap]
Diffstat (limited to 'package/boot/uboot-oxnas/src/common')
0 files changed, 0 insertions, 0 deletions