forked from Ivasoft/openwrt
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
This commit is contained in:
26
target/linux/x86/alix2/base-files/etc/config/system
Normal file
26
target/linux/x86/alix2/base-files/etc/config/system
Normal file
@@ -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'
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user