acpid: Forgot to commit config data.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 24 Aug 2012 13:28:24 +0000 (15:28 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 24 Aug 2012 13:28:24 +0000 (15:28 +0200)
config/acpid/power [new file with mode: 0644]
config/acpid/power.sh [new file with mode: 0644]

diff --git a/config/acpid/power b/config/acpid/power
new file mode 100644 (file)
index 0000000..7406317
--- /dev/null
@@ -0,0 +1,4 @@
+# ACPID config to power down machine if powerbutton is pressed
+
+event=button/power.*
+action=/etc/acpi/actions/power.sh
diff --git a/config/acpid/power.sh b/config/acpid/power.sh
new file mode 100644 (file)
index 0000000..839a318
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# Shutdown the system immediately
+shutdown -h now