diff options
author | Florian Fainelli <florian@openwrt.org> | 2011-08-25 09:35:45 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2011-08-25 09:35:45 +0000 |
commit | 9f4bebfb051803baf2a8af5b61434b1aa33027fa (patch) | |
tree | 2fab3b8966c6e8461441b59485c967a1f291a91f /target/linux/x86/alix2/base-files/etc/hotplug.d/button | |
parent | 08e617c6168050a0331a8830b37581c9449de075 (diff) | |
download | master-187ad058-9f4bebfb051803baf2a8af5b61434b1aa33027fa.tar.gz master-187ad058-9f4bebfb051803baf2a8af5b61434b1aa33027fa.tar.bz2 master-187ad058-9f4bebfb051803baf2a8af5b61434b1aa33027fa.zip |
[x86] 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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28081 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/x86/alix2/base-files/etc/hotplug.d/button')
-rw-r--r-- | target/linux/x86/alix2/base-files/etc/hotplug.d/button/50-reboot | 13 |
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 0000000000..bf893c15bb --- /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 |