summaryrefslogtreecommitdiffstats
path: root/target/linux/x86/alix2/base-files/etc/hotplug.d/button/50-reboot
blob: bf893c15bbc6aec0727b62784d20e98b9141da10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

logger -t button -p daemon.info "$BUTTON/$ACTION"

case "$BUTTON/$ACTION" in

reset/released)
  reboot -f
  ;;

esac

exit 0