Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | --- |
| 2 | actions/power.sh | 3 +++ |
| 3 | events/powerbtn | 2 ++ |
| 4 | 2 files changed, 5 insertions(+) |
| 5 | |
| 6 | Upstream-Status: Inappropriate [enable feature] |
| 7 | |
| 8 | Index: git/events/powerbtn |
| 9 | =================================================================== |
| 10 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
| 11 | +++ git/events/powerbtn 2008-10-08 17:43:35.000000000 +0200 |
| 12 | @@ -0,0 +1,2 @@ |
| 13 | +event=button/power PWRF |
| 14 | +action=/etc/acpi/actions/power.sh |
| 15 | Index: git/actions/power.sh |
| 16 | =================================================================== |
| 17 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
| 18 | +++ git/actions/power.sh 2008-10-08 17:45:26.000000000 +0200 |
| 19 | @@ -0,0 +1,3 @@ |
| 20 | +#!/bin/sh |
| 21 | + |
| 22 | +/sbin/shutdown -h now "Power button pressed" |