aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ifxmips/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ifxmips/base-files')
-rw-r--r--target/linux/ifxmips/base-files/etc/hotplug.d/button/00-reset3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/ifxmips/base-files/etc/hotplug.d/button/00-reset b/target/linux/ifxmips/base-files/etc/hotplug.d/button/00-reset
new file mode 100644
index 0000000000..ef70cd49a5
--- /dev/null
+++ b/target/linux/ifxmips/base-files/etc/hotplug.d/button/00-reset
@@ -0,0 +1,3 @@
+[ "$ACTION" = "released" -a "$BUTTON" = reset ] && {
+ reboot
+}