button-hotplug: Add KEY_POWER handling
authorJohn Crispin <john@openwrt.org>
Thu, 4 Jul 2013 13:31:09 +0000 (13:31 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 4 Jul 2013 13:31:09 +0000 (13:31 +0000)
commite15a16bfd7e38d1fd3eb39077286b9a6b2a5e917
tree295256bca963c4d671bf1247b0f00cc522872960
parent6bd071724c140f5703822af694d58fc1f2f9482e
button-hotplug: Add KEY_POWER handling

When running OpenWrt within KVM KEY_POWER is generated from the ACPI
button driver when restarting or powering down the VM.

Extend button-hotplug to allow user space handlers for these events.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Patchwork: http://patchwork.openwrt.org/patch/3799/

SVN-Revision: 37160
package/kernel/button-hotplug/src/button-hotplug.c