ar71xx: unify LED names on TP-Link boards
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / base-files / etc / uci-defaults / tl-wr941nd
1 #!/bin/sh
2 #
3 # Copyright (C) 2010 OpenWrt.org
4 #
5
6 . /lib/ar71xx.sh
7
8 board=$(ar71xx_board_name)
9
10 tl_wr941nd_set_wlan_led() {
11 uci batch <<EOF
12 set system.wlan_led=led
13 set system.wlan_led.name='WLAN'
14 set system.wlan_led.sysfs='tp-link:green:wlan'
15 set system.wlan_led.trigger='phy0tpt'
16 commit system
17 EOF
18 }
19
20 if [ "${board}" == "tl-wr941nd" ]; then
21 tl_wr941nd_set_wlan_led
22 fi