button-hotplug: Add KEY_POWER handling
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 4 Jul 2013 13:31:09 +0000 (13:31 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 4 Jul 2013 13:31:09 +0000 (13:31 +0000)
commit7955657829ea2511a0b20c341028a4fdd751e231
tree82f2b6a297ad23998704f69b9e2c0ded7bee726c
parent33c1031eb8f7dc376da8d025d873968f93d6cba3
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/

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37160 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/kernel/button-hotplug/src/button-hotplug.c