fed821663ab5fa8805821c6b722ee0e91d3f0af7
[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
12 case "$board" in
13 buffalo,wxr-2533dhp)
14 ucidef_set_led_wlan "wlan" "WLAN" "white:wireless" "phy0tpt"
15 ucidef_set_led_switch "wan" "WAN" "white:internet" "switch0" "0x20"
16 ;;
17 compex,wpq864)
18 ucidef_set_led_usbport "usb" "USB" "green:usb" "usb1-port1" "usb2-port1"
19 ucidef_set_led_usbport "pcie-usb" "PCIe USB" "green:usb-pcie" "usb3-port1"
20 ;;
21 edgecore,ecw5410)
22 ucidef_set_led_wlan "wlan2g" "WLAN2G" "green:wlan2g" "phy1tpt"
23 ucidef_set_led_wlan "wlan5g" "WLAN5G" "green:wlan5g" "phy0tpt"
24 ;;
25 nec,wg2600hp)
26 ucidef_set_led_wlan "wlan2g" "WLAN2G" "green:wlan2g" "phy1tpt"
27 ucidef_set_led_wlan "wlan5g" "WLAN5G" "green:wlan5g" "phy0tpt"
28 ucidef_set_led_switch "wan" "WAN" "green:active" "switch0" "0x2"
29 ;;
30 nec,wg2600hp3)
31 ucidef_set_led_switch "wan" "WAN" "green:active" "switch0" "0x2"
32 ;;
33 netgear,d7800 |\
34 netgear,r7500 |\
35 netgear,r7500v2 |\
36 netgear,r7800)
37 ucidef_set_led_usbport "usb1" "USB 1" "white:usb1" "usb1-port1" "usb2-port1"
38 ucidef_set_led_usbport "usb2" "USB 2" "white:usb2" "usb3-port1" "usb4-port1"
39 ucidef_set_led_switch "wan" "WAN" "white:wan" "switch0" "0x20"
40 ucidef_set_led_ide "esata" "eSATA" "white:esata"
41 ;;
42 tplink,c2600)
43 ucidef_set_led_usbport "usb1" "USB 1" "white:usb_2" "usb1-port1" "usb2-port1"
44 ucidef_set_led_usbport "usb2" "USB 2" "white:usb_4" "usb3-port1" "usb4-port1"
45 ucidef_set_led_switch "wan" "wan" "white:wan" "switch0" "0x20"
46 ucidef_set_led_switch "lan" "lan" "white:lan" "switch0" "0x1e"
47 ;;
48 tplink,vr2600v)
49 ucidef_set_led_usbport "usb" "USB" "white:usb" "usb1-port1" "usb2-port1" "usb3-port1" "usb4-port1"
50 ucidef_set_led_switch "lan" "lan" "white:lan" "switch0" "0x1e"
51 ucidef_set_led_wlan "wlan2g" "WLAN2G" "white:wlan2g" "phy0tpt"
52 ucidef_set_led_wlan "wlan5g" "WLAN5G" "white:wlan5g" "phy1tpt"
53 ucidef_set_led_switch "wan" "wan" "white:wan" "switch0" "0x20"
54 ;;
55 zyxel,nbg6817)
56 ucidef_set_led_netdev "wan" "WAN" "white:internet" "eth1"
57 ;;
58 esac
59
60 board_config_flush
61
62 exit 0