ipq806x: base-files: add support for Linksys EA8500
[openwrt/openwrt.git] / target / linux / ipq806x / base-files / etc / board.d / 01_leds
1 #!/bin/sh
2 #
3 # Copyright (C) 2015 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7 . /lib/ipq806x.sh
8
9 board_config_update
10
11 board=$(ipq806x_board_name)
12
13 case "$board" in
14 c2600)
15 ucidef_set_led_usbdev "usb1" "USB 1" "usb_2:blue" "2-1"
16 ucidef_set_led_usbdev "usb2" "USB 2" "usb_4:blue" "4-1"
17 ucidef_set_led_netdev "wan" "WAN" "wan:blue" "eth0"
18 ucidef_set_led_netdev "lan" "LAN" "lan:blue" "br-lan"
19 ucidef_set_led_default "general" "general" "ledgnr:blue" "1"
20 ;;
21 d7800 |\
22 r7500)
23 ucidef_set_led_usbdev "usb1" "USB 1" "r7500:white:usb1" "1-1"
24 ucidef_set_led_usbdev "usb2" "USB 2" "r7500:white:usb3" "3-1"
25 ucidef_set_led_netdev "wan" "WAN" "r7500:white:wan" "eth0"
26 ucidef_set_led_ide "esata" "eSATA" "r7500:amber:esata"
27 ucidef_set_led_default "wps" "WPS" "r7500:white:wps" "0"
28 ucidef_set_led_default "rfkill" "rfkill" "r7500:white:rfkill" "0"
29 ;;
30 ea8500)
31 ucidef_set_led_wlan "wifi" "WIFI" "ea8500:green:wifi" "phy0radio"
32 ucidef_set_led_default "wps" "WPS" "ea8500:green:wps" "0"
33 ;;
34 *)
35 ;;
36 esac
37
38 board_config_flush
39
40 exit 0