aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
Diffstat (limited to 'package')
-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 0000000000..0cb74b9f29
--- /dev/null
+++ b/package/base-files/files/etc/rc.button/power
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+[ "${ACTION}" = "released" ] || exit 0
+
+exec /sbin/poweroff