summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/rc.button/power
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/etc/rc.button/power')
-rw-r--r--package/base-files/files/etc/rc.button/power5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/base-files/files/etc/rc.button/power b/package/base-files/files/etc/rc.button/power
new file mode 100644
index 0000000..0cb74b9
--- /dev/null
+++ b/package/base-files/files/etc/rc.button/power
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+[ "${ACTION}" = "released" ] || exit 0
+
+exec /sbin/poweroff