ipq806x: add support for Compex WPQ864
[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
8 board_config_update
9
10 board=$(board_name)
11 boardname="${board##*,}"
12
13 case "$board" in
14 compex,wpq864)
15 ucidef_set_led_usbport "usb" "USB" "wpq864:green:usb" "usb1-port1" "usb2-port1"
16 ucidef_set_led_usbport "pcie-usb" "PCIe USB" "wpq864:green:usb-pcie" "usb3-port1"
17 ;;
18 netgear,d7800 |\
19 netgear,r7500 |\
20 netgear,r7500v2 |\
21 netgear,r7800)
22 ucidef_set_led_usbport "usb1" "USB 1" "${boardname}:white:usb1" "usb1-port1" "usb2-port1"
23 ucidef_set_led_usbport "usb2" "USB 2" "${boardname}:white:usb2" "usb3-port1" "usb4-port1"
24 ucidef_set_led_netdev "wan" "WAN" "${boardname}:white:wan" "eth0"
25 ucidef_set_led_ide "esata" "eSATA" "${boardname}:white:esata"
26 ;;
27 tplink,c2600)
28 ucidef_set_led_usbport "usb1" "USB 1" "${boardname}:white:usb_2" "usb1-port1" "usb2-port1"
29 ucidef_set_led_usbport "usb2" "USB 2" "${boardname}:white:usb_4" "usb3-port1" "usb4-port1"
30 ucidef_set_led_switch "wan" "wan" "${boardname}:white:wan" "switch0" "0x20"
31 ucidef_set_led_switch "lan" "lan" "${boardname}:white:lan" "switch0" "0x1e"
32 ;;
33 tplink,vr2600v)
34 ucidef_set_led_usbport "usb" "USB" "${boardname}:white:usb" "usb1-port1" "usb2-port1" "usb3-port1" "usb4-port1"
35 ucidef_set_led_switch "lan" "lan" "${boardname}:white:lan" "switch0" "0x1e"
36 ucidef_set_led_wlan "wlan2g" "WLAN2G" "${boardname}:white:wlan2g" "phy0tpt"
37 ucidef_set_led_wlan "wlan5g" "WLAN5G" "${boardname}:white:wlan5g" "phy1tpt"
38 ucidef_set_led_switch "wan" "wan" "${boardname}:white:wan" "switch0" "0x20"
39 ;;
40 zyxel,nbg6817)
41 ucidef_set_led_wlan "wlan2g" "WLAN2G" "${boardname}:amber:wifi2g" "phy1tpt"
42 ucidef_set_led_wlan "wlan5g" "WLAN5G" "${boardname}:amber:wifi5g" "phy0tpt"
43 ucidef_set_led_netdev "wan" "WAN" "${boardname}:white:internet" "eth1"
44 ;;
45 *)
46 ;;
47 esac
48
49 board_config_flush
50
51 exit 0