blob: c62f72f0999a780d3c7613232e79e730e6e6072f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/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'
set system.led_lan2='led'
set system.led_lan2.name='lan2'
set system.led_lan2.sysfs='zcn-1523h:green:lan2'
set system.led_lan2.trigger='netdev'
set system.led_lan2.dev='eth1'
set system.led_lan2.mode='link tx rx'
commit system
EOF
}
if [ "${board}" == "zcn-1523h-5" ]; then
zcn_set_leds
fi
|