ar71xx: unify LED names on TP-Link boards
[openwrt.git] / target / linux / ar71xx / base-files / etc / uci-defaults / rb750
1 #!/bin/sh
2 #
3 # Copyright (C) 2010 OpenWrt.org
4 #
5
6 . /lib/ar71xx.sh
7
8 board=$(ar71xx_board_name)
9
10 rb750_set_leds() {
11 uci batch <<EOF
12 set system.led_act='led'
13 set system.led_act.name='act'
14 set system.led_act.sysfs='rb750:green:act'
15 set system.led_act.default='1'
16 set system.led_port1='led'
17 set system.led_port1.name='port1'
18 set system.led_port1.sysfs='rb750:green:port1'
19 set system.led_port1.trigger='netdev'
20 set system.led_port1.dev=eth1
21 set system.led_port1.mode='link tx rx'
22 commit system
23 EOF
24 }
25
26 if [ "${board}" == "rb-750" ]; then
27 rb750_set_leds
28 fi
This page took 0.044721 seconds and 5 git commands to generate.