diff options
Diffstat (limited to 'meta/recipes-bsp/eee-acpi-scripts/files/powerbtn.patch')
-rw-r--r-- | meta/recipes-bsp/eee-acpi-scripts/files/powerbtn.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta/recipes-bsp/eee-acpi-scripts/files/powerbtn.patch b/meta/recipes-bsp/eee-acpi-scripts/files/powerbtn.patch new file mode 100644 index 0000000000..3f79c3e610 --- /dev/null +++ b/meta/recipes-bsp/eee-acpi-scripts/files/powerbtn.patch | |||
@@ -0,0 +1,20 @@ | |||
1 | --- | ||
2 | actions/power.sh | 3 +++ | ||
3 | events/powerbtn | 2 ++ | ||
4 | 2 files changed, 5 insertions(+) | ||
5 | |||
6 | Index: git/events/powerbtn | ||
7 | =================================================================== | ||
8 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
9 | +++ git/events/powerbtn 2008-10-08 17:43:35.000000000 +0200 | ||
10 | @@ -0,0 +1,2 @@ | ||
11 | +event=button/power PWRF | ||
12 | +action=/etc/acpi/actions/power.sh | ||
13 | Index: git/actions/power.sh | ||
14 | =================================================================== | ||
15 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | ||
16 | +++ git/actions/power.sh 2008-10-08 17:45:26.000000000 +0200 | ||
17 | @@ -0,0 +1,3 @@ | ||
18 | +#!/bin/sh | ||
19 | + | ||
20 | +/sbin/shutdown -h now "Power button pressed" | ||