source: trunk/target/linux/ar71xx/base-files/etc/uci-defaults/zcn-1523h-2 @ 22882

Last change on this file since 22882 was 22882, checked in by juhosg, 6 years ago

ar71xx: add support for the Zcomax ZCN-1523H-2-8/5-16 boards

  • Property svn:executable set to *
File size: 420 bytes
Line 
1#!/bin/sh
2#
3# Copyright (C) 2010 OpenWrt.org
4#
5
6. /lib/ar71xx.sh
7
8board=$(ar71xx_board_name)
9
10zcn_set_leds() {
11        uci batch <<EOF
12set system.led_lan1='led'
13set system.led_lan1.name='lan1'
14set system.led_lan1.sysfs='zcn-1523h:green:lan1'
15set system.led_lan1.trigger='netdev'
16set system.led_lan1.dev='eth0'
17set system.led_lan1.mode='link tx rx'
18commit system
19EOF
20}
21
22if [ "${board}" == "zcn-1523h-2" ]; then
23        zcn_set_leds
24fi
Note: See TracBrowser for help on using the repository browser.