From 1d08fd80b11f9eef3dff1a9e0ebb8b8fa02ed44a Mon Sep 17 00:00:00 2001 From: florian Date: Thu, 25 Aug 2011 09:35:45 +0000 Subject: [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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28081 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../linux/x86/alix2/base-files/etc/config/system | 26 ++++++++++++++++++++++ .../base-files/etc/hotplug.d/button/50-reboot | 13 +++++++++++ 2 files changed, 39 insertions(+) create mode 100644 target/linux/x86/alix2/base-files/etc/config/system create mode 100644 target/linux/x86/alix2/base-files/etc/hotplug.d/button/50-reboot (limited to 'target/linux/x86/alix2/base-files/etc') diff --git a/target/linux/x86/alix2/base-files/etc/config/system b/target/linux/x86/alix2/base-files/etc/config/system new file mode 100644 index 0000000000..28134b64c5 --- /dev/null +++ b/target/linux/x86/alix2/base-files/etc/config/system @@ -0,0 +1,26 @@ +config system + option hostname OpenWrt + option timezone UTC + +config rdate + option interface wan + +config led + option default 1 + option name LAN + option sysfs 'alix:1' + option trigger netdev + option mode 'tx rx' + option dev 'br-lan' + +config led + option default 1 + option name WiFi + option sysfs 'alix:2' + option trigger 'phy0tpt' + +config led + option default 0 + option name Heartbeat + option sysfs 'alix:3' + option trigger 'heartbeat' 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 -- cgit v1.2.3