aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/x86/alix2/base-files/etc/hotplug.d/button/50-reboot
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/x86/alix2/base-files/etc/hotplug.d/button/50-reboot')
-rw-r--r--target/linux/x86/alix2/base-files/etc/hotplug.d/button/50-reboot13
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/x86/alix2/base-files/etc/hotplug.d/button/50-reboot b/target/linux/x86/alix2/base-files/etc/hotplug.d/button/50-reboot
new file mode 100644
index 000000000..bf893c15b
--- /dev/null
+++ b/target/linux/x86/alix2/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