summaryrefslogtreecommitdiff
path: root/meta/packages/eee-acpi-scripts/files
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@openedhand.com>2008-10-08 16:06:09 +0000
committerSamuel Ortiz <sameo@openedhand.com>2008-10-08 16:06:09 +0000
commit3dc1ade034ee427f87a8b6691ed3492e2a2f72e4 (patch)
tree75536b4c45094e011c3daf2bee9fcda618102a53 /meta/packages/eee-acpi-scripts/files
parent93cd99156acebc734f0ffc55c6120d595f5ff210 (diff)
downloadopenembedded-core-3dc1ade034ee427f87a8b6691ed3492e2a2f72e4.tar.gz
openembedded-core-3dc1ade034ee427f87a8b6691ed3492e2a2f72e4.tar.bz2
openembedded-core-3dc1ade034ee427f87a8b6691ed3492e2a2f72e4.zip
eee-acpi: power button support
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5464 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/eee-acpi-scripts/files')
-rw-r--r--meta/packages/eee-acpi-scripts/files/powerbtn.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/packages/eee-acpi-scripts/files/powerbtn.patch b/meta/packages/eee-acpi-scripts/files/powerbtn.patch
new file mode 100644
index 0000000000..3f79c3e610
--- /dev/null
+++ b/meta/packages/eee-acpi-scripts/files/powerbtn.patch
@@ -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"