1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-11 10:11:34 +02:00
openwrt-xburst/target/linux/ar71xx/base-files/etc/uci-defaults/wzr-hp-g300nh
juhosg 67fa44f5be backfire: ar71xx: populate LED configuration for WZR-HP-G300NH (backport of r24642)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@24923 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-01-08 10:17:45 +00:00

31 lines
633 B
Bash
Executable File

#!/bin/sh
#
# Copyright (C) 2010 OpenWrt.org
#
. /lib/ar71xx.sh
board=$(ar71xx_board_name)
wzrhpg300nh_set_leds() {
uci batch <<EOF
add system led
set system.@led[-1]='led'
set system.@led[-1].name='Wireless'
set system.@led[-1].sysfs='wzr-hp-g300nh:green:wireless'
set system.@led[-1].trigger='phy0tpt'
add system led
set system.@led[-1]='led'
set system.@led[-1].name='Router'
set system.@led[-1].sysfs='wzr-hp-g300nh:green:router'
set system.@led[-1].trigger='netdev'
set system.@led[-1].dev='eth1'
set system.@led[-1].mode='link tx rx'
commit system
EOF
}
if [ "${board}" == "wzr-hp-g300nh" ]; then
wzrhpg300nh_set_leds
fi