diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-09-03 18:14:37 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-09-03 18:14:37 +0000 |
commit | b4336a8e2db89f6f1b9d9eee885e63c34e636df1 (patch) | |
tree | 2b02d78c88d97378c54888769545f4651463368b /target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-2 | |
parent | 2a541325d3db510c2b5aee30dc88c72255a797c0 (diff) | |
download | upstream-b4336a8e2db89f6f1b9d9eee885e63c34e636df1.tar.gz upstream-b4336a8e2db89f6f1b9d9eee885e63c34e636df1.tar.bz2 upstream-b4336a8e2db89f6f1b9d9eee885e63c34e636df1.zip |
ar71xx: add support for the Zcomax ZCN-1523H-2-8/5-16 boards
SVN-Revision: 22882
Diffstat (limited to 'target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-2')
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-2 | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-2 b/target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-2 new file mode 100755 index 0000000000..4f77316357 --- /dev/null +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-2 @@ -0,0 +1,24 @@ +#!/bin/sh +# +# Copyright (C) 2010 OpenWrt.org +# + +. /lib/ar71xx.sh + +board=$(ar71xx_board_name) + +zcn_set_leds() { + uci batch <<EOF +set system.led_lan1='led' +set system.led_lan1.name='lan1' +set system.led_lan1.sysfs='zcn-1523h:green:lan1' +set system.led_lan1.trigger='netdev' +set system.led_lan1.dev='eth0' +set system.led_lan1.mode='link tx rx' +commit system +EOF +} + +if [ "${board}" == "zcn-1523h-2" ]; then + zcn_set_leds +fi |