5602aab2281993aab438b1ad8cfa16e437150545
[openwrt.git] / target / linux / ar71xx / base-files / etc / uci-defaults / wzr-hp-g300nh
1 #!/bin/sh
2 #
3 # Copyright (C) 2010 OpenWrt.org
4 #
5
6 . /lib/ar71xx.sh
7
8 board=$(ar71xx_board_name)
9
10 wzrhpg300nh_set_leds() {
11 uci batch <<EOF
12 add system led
13 set system.@led[-1]='led'
14 set system.@led[-1].name='Wireless'
15 set system.@led[-1].sysfs='wzr-hp-g300nh:green:wireless'
16 set system.@led[-1].trigger='phy0tpt'
17 add system led
18 set system.@led[-1]='led'
19 set system.@led[-1].name='Router'
20 set system.@led[-1].sysfs='wzr-hp-g300nh:green:router'
21 set system.@led[-1].trigger='netdev'
22 set system.@led[-1].dev='eth1'
23 set system.@led[-1].mode='link tx rx'
24 commit system
25 EOF
26 }
27
28 if [ "${board}" == "wzr-hp-g300nh" ]; then
29 wzrhpg300nh_set_leds
30 fi
This page took 0.040978 seconds and 3 git commands to generate.