eee-acpi: power button support
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5464 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
parent
93cd99156a
commit
3dc1ade034
|
@ -3,12 +3,13 @@ DESCRIPTION = "eeePC specific ACPI scripts"
|
||||||
LICENSE="GPL"
|
LICENSE="GPL"
|
||||||
|
|
||||||
PV = "0.0+git${SRCREV}"
|
PV = "0.0+git${SRCREV}"
|
||||||
PR = "r2"
|
PR = "r3"
|
||||||
|
|
||||||
RDEPENDS = "pm-utils"
|
RDEPENDS = "pm-utils"
|
||||||
|
|
||||||
SRC_URI = "git://git.debian.org/git/debian-eeepc/eeepc-acpi-scripts.git;protocol=git \
|
SRC_URI = "git://git.debian.org/git/debian-eeepc/eeepc-acpi-scripts.git;protocol=git \
|
||||||
file://remove-doc-check.patch;patch=1 \
|
file://remove-doc-check.patch;patch=1 \
|
||||||
|
file://powerbtn.patch;patch=1 \
|
||||||
file://policy-funcs "
|
file://policy-funcs "
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
---
|
||||||
|
actions/power.sh | 3 +++
|
||||||
|
events/powerbtn | 2 ++
|
||||||
|
2 files changed, 5 insertions(+)
|
||||||
|
|
||||||
|
Index: git/events/powerbtn
|
||||||
|
===================================================================
|
||||||
|
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||||
|
+++ git/events/powerbtn 2008-10-08 17:43:35.000000000 +0200
|
||||||
|
@@ -0,0 +1,2 @@
|
||||||
|
+event=button/power PWRF
|
||||||
|
+action=/etc/acpi/actions/power.sh
|
||||||
|
Index: git/actions/power.sh
|
||||||
|
===================================================================
|
||||||
|
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||||
|
+++ git/actions/power.sh 2008-10-08 17:45:26.000000000 +0200
|
||||||
|
@@ -0,0 +1,3 @@
|
||||||
|
+#!/bin/sh
|
||||||
|
+
|
||||||
|
+/sbin/shutdown -h now "Power button pressed"
|
Loading…
Reference in New Issue