ar71xx: WNDR3700 WiFi LEDs should blink for activity (#7984)
[openwrt.git] / target / linux / ar71xx / base-files / etc / uci-defaults / wndr3700
1 #!/bin/sh
2 #
3 # Copyright (C) 2010 OpenWrt.org
4 #
5
6 . /lib/ar71xx.sh
7
8 board=$(ar71xx_board_name)
9
10 wndr3700_set_wan_wifi_leds() {
11 uci batch <<EOF
12 set system.wan_led='led'
13 set system.wan_led.sysfs='wndr3700:green:wan'
14 set system.wan_led.name='WAN LED (green)'
15 set system.wan_led.default='0'
16 set system.wifi_led_2ghz='led'
17 set system.wifi_led_2ghz.sysfs='ath9k-phy0::radio'
18 set system.wifi_led_2ghz.name='2.4GHz WiFi LED (green)'
19 set system.wifi_led_2ghz.trigger='netdev'
20 set system.wifi_led_2ghz.dev='wlan0'
21 set system.wifi_led_2ghz.mode='link tx rx'
22 set system.wifi_led_5ghz='led'
23 set system.wifi_led_5ghz.sysfs='ath9k-phy1::radio'
24 set system.wifi_led_5ghz.name='5GHz WiFi LED (blue)'
25 set system.wifi_led_5ghz.trigger='netdev'
26 set system.wifi_led_5ghz.dev='wlan1'
27 set system.wifi_led_5ghz.mode='link tx rx'
28 commit system
29 EOF
30 }
31
32 if [ "${board}" == "wndr3700" ]; then
33 wndr3700_set_wan_wifi_leds
34 fi
This page took 0.045294 seconds and 5 git commands to generate.