openwrtv3/target/linux/x86/alix2/base-files/etc/hotplug.d/button/50-reboot
Florian Fainelli d2652dee9d update alix2 platform driver
Add support for Ed Wildgoose's alix platform driver plus my
enhancement to add GPIO soft button support.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>

SVN-Revision: 28081
2011-08-25 09:35:45 +00:00

13 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