openwrt/target/linux/x86/alix2/base-files/etc/hotplug.d/button/50-reboot

14 lines
136 B
Bash

#!/bin/sh
logger -t button -p daemon.info "$BUTTON/$ACTION"
case "$BUTTON/$ACTION" in
reset/released)
reboot -f
;;
esac
exit 0