summaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-2
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-09-03 18:14:37 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-09-03 18:14:37 +0000
commit006386c4b4cc0da66bf9e40beb66f8008ab3208a (patch)
tree59c38e4afa0ac469f8668f97fb7e56d3f4061d00 /target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-2
parentb73df9f67e312619830887740cc066b4555b63b3 (diff)
ar71xx: add support for the Zcomax ZCN-1523H-2-8/5-16 boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22882 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-2')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-224
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 000000000..4f7731635
--- /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