mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-10 15:26:14 +02:00
25 lines
420 B
Plaintext
25 lines
420 B
Plaintext
|
#!/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
|