a9096739b693034e177b3056fb522e05c8042636
[openwrt/openwrt.git] / target / linux / brcm63xx / base-files / etc / board.d / 01_leds
1 #!/bin/sh
2 #
3 # Copyright (C) 2013-2015 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7
8 board_config_update
9
10 case "$(board_name)" in
11 a4001n1)
12 ucidef_set_led_netdev "lan" "LAN" "A4001N1:green:eth" "eth0"
13 ucidef_set_led_usbdev "usb" "USB" "A4001N1:green:3g" "1-1"
14 ;;
15 a4001n)
16 ucidef_set_led_usbdev "usb" "USB" "A4001N:green:usb" "1-1"
17 ;;
18 av4202n)
19 ucidef_set_led_netdev "wlan0" "WLAN" "AV4202N:blue:wifi" "wlan0"
20 ;;
21 cpva502p)
22 ucidef_set_led_netdev "lan" "LAN" "CPVA502+:amber:link" "eth0"
23 ;;
24 dgnd3700v1_dgnd3800b)
25 ucidef_set_led_netdev "lan" "LAN" "DGND3700v1_3800B:green:lan" "eth0.1"
26 ucidef_set_led_netdev "wan" "WAN" "DGND3700v1_3800B:green:inet" "eth0.2"
27 ucidef_set_led_netdev "wlan0" "WIFI2G" "DGND3700v1_3800B:green:wifi2g" "wlan0"
28 ucidef_set_led_netdev "wlan1" "WIFI5G" "DGND3700v1_3800B:blue:wifi5g" "wlan1"
29 ucidef_set_led_usbdev "usb1" "USB1" "DGND3700v1_3800B:green:usb-back" "1-1"
30 ucidef_set_led_usbdev "usb2" "USB2" "DGND3700v1_3800B:green:usb-front" "1-2"
31 ;;
32 evg2000)
33 ucidef_set_led_netdev "lan" "LAN" "EVG2000:green:lan" "eth0"
34 ucidef_set_led_netdev "wan" "WAN" "EVG2000:green:wan" "eth1"
35 ucidef_set_led_netdev "wlan0" "WIFI" "EVG2000:green:wireless" "wlan0"
36 ucidef_set_led_usbdev "usb1" "USB1" "EVG2000:green:voip1" "1-1"
37 ucidef_set_led_usbdev "usb2" "USB2" "EVG2000:green:voip2" "1-2"
38 ;;
39 fast2704n)
40 ucidef_set_led_netdev "wan" "WAN" "F@ST2704N:green:inet" "eth0.2"
41 ;;
42 fast2704v2)
43 ucidef_set_led_usbdev "usb" "USB" "F@ST2704V2:green:usb" "1-1"
44 ;;
45 hg553)
46 ucidef_set_led_netdev "lan" "LAN" "HW553:blue:lan" "eth0"
47 ucidef_set_led_usbdev "usb1" "USB1" "HW553:red:hspa" "1-1"
48 ucidef_set_led_usbdev "usb2" "USB2" "HW553:blue:hspa" "1-2"
49 ;;
50 hg556a_*)
51 ucidef_set_led_netdev "lan" "LAN" "HW556:red:dsl" "eth0"
52 ucidef_set_led_usbdev "usb" "USB" "HW556:red:hspa" "1-2"
53 ;;
54 hg622)
55 ucidef_set_led_usbdev "usb" "USB" "HG622:green:usb" "1-2"
56 ;;
57 hg655b)
58 ucidef_set_led_usbdev "usb" "USB" "HW65x:green:usb" "1-2"
59 ;;
60 homehub2a)
61 ucidef_set_led_netdev "lan" "LAN" "HOMEHUB2A:blue:broadband" "eth0.1"
62 ucidef_set_led_netdev "wlan0" "WIFI" "HOMEHUB2A:green:wireless" "wlan0"
63 ucidef_set_led_usbdev "usb1" "USB1" "HOMEHUB2A:blue:phone" "1-1"
64 ucidef_set_led_usbdev "usb2" "USB2" "HOMEHUB2A:green:phone" "2-1"
65 ;;
66 livebox1)
67 ucidef_set_led_netdev "lan" "LAN" "Livebox1:red:traffic" "eth0"
68 ucidef_set_led_netdev "wan" "WAN" "Livebox1:red:adsl" "eth1"
69 ucidef_set_led_netdev "wlan0" "WIFI" "Livebox1:red:wifi" "wlan0"
70 ;;
71 r1000h)
72 ucidef_set_led_usbport "usb" "USB" "R1000H:green:usb" "usb1-port1" "usb2-port1"
73 ;;
74 r5010un_v2)
75 ucidef_set_led_usbdev "usb" "USB" "R5010UNv2:green:usb" "1-1"
76 ;;
77 esac
78
79 board_config_flush
80
81 exit 0