summaryrefslogtreecommitdiffstats
path: root/target/linux/x86/geos/base-files/etc/hotplug.d/button
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/x86/geos/base-files/etc/hotplug.d/button')
-rw-r--r--target/linux/x86/geos/base-files/etc/hotplug.d/button/50-reboot13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/x86/geos/base-files/etc/hotplug.d/button/50-reboot b/target/linux/x86/geos/base-files/etc/hotplug.d/button/50-reboot
new file mode 100644
index 000000000..bf893c15b
--- /dev/null
+++ b/target/linux/x86/geos/base-files/etc/hotplug.d/button/50-reboot
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+logger -t button -p daemon.info "$BUTTON/$ACTION"
+
+case "$BUTTON/$ACTION" in
+
+reset/released)
+ reboot -f
+ ;;
+
+esac
+
+exit 0