c62de013d482a9fb619e487c507e348ceb1a1bb8
[openwrt/staging/rmilecki.git] / target / linux / mvebu / cortexa9 / base-files / etc / board.d / 01_leds
1 #!/bin/sh
2 #
3 # Copyright (C) 2014-2016 OpenWrt.org
4 # Copyright (C) 2016 LEDE-Project.org
5 #
6
7 . /lib/functions/uci-defaults.sh
8
9 board_config_update
10
11 board=$(board_name)
12 boardname="${board##*,}"
13
14 case "$board" in
15 linksys,wrt1200ac)
16 ucidef_set_led_netdev "wan" "WAN" "pca963x:caiman:white:wan" "wan"
17 ucidef_set_led_usbport "usb1" "USB 1" "pca963x:caiman:white:usb2" "usb1-port1"
18 ucidef_set_led_usbport "usb2" "USB 2" "pca963x:caiman:white:usb3_1" "usb2-port1" "usb3-port1"
19 ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "pca963x:caiman:white:usb3_2" "usb3-port1"
20 ;;
21 linksys,wrt1900ac-v1)
22 ucidef_set_led_netdev "wan" "WAN" "mamba:white:wan" "wan"
23 ucidef_set_led_usbport "usb1" "USB 1" "mamba:white:usb2" "usb1-port1"
24 ucidef_set_led_usbport "usb2" "USB 2" "mamba:white:usb3_1" "usb2-port1" "usb3-port1"
25 ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "mamba:white:usb3_2" "usb3-port2"
26 ;;
27 linksys,wrt1900ac-v2)
28 ucidef_set_led_netdev "wan" "WAN" "pca963x:cobra:white:wan" "wan"
29 ucidef_set_led_usbport "usb1" "USB 1" "pca963x:cobra:white:usb2" "usb1-port1"
30 ucidef_set_led_usbport "usb2" "USB 2" "pca963x:cobra:white:usb3_1" "usb2-port1" "usb3-port1"
31 ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "pca963x:cobra:white:usb3_2" "usb3-port1"
32 ;;
33 linksys,wrt1900acs)
34 ucidef_set_led_netdev "wan" "WAN" "pca963x:shelby:white:wan" "wan"
35 ucidef_set_led_usbport "usb1" "USB 1" "pca963x:shelby:white:usb2" "usb1-port1"
36 ucidef_set_led_usbport "usb2" "USB 2" "pca963x:shelby:white:usb3_1" "usb2-port1" "usb3-port1"
37 ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "pca963x:shelby:white:usb3_2" "usb3-port1"
38 ;;
39 linksys,wrt3200acm)
40 ucidef_set_led_netdev "wan" "WAN" "pca963x:rango:white:wan" "wan"
41 ucidef_set_led_usbport "usb1" "USB 1" "pca963x:rango:white:usb2" "usb1-port1"
42 ucidef_set_led_usbport "usb2" "USB 2" "pca963x:rango:white:usb3_1" "usb2-port1" "usb3-port1"
43 ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "pca963x:rango:white:usb3_2" "usb3-port1"
44 ;;
45 linksys,wrt32x)
46 ucidef_set_led_netdev "wan" "WAN" "pca963x:venom:blue:wan" "wan"
47 ucidef_set_led_usbport "usb1" "USB 1" "pca963x:venom:blue:usb2" "usb1-port1"
48 ucidef_set_led_usbport "usb2" "USB 2" "pca963x:venom:blue:usb3_1" "usb2-port1" "usb3-port1"
49 ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "pca963x:venom:blue:usb3_2" "usb3-port1"
50 ;;
51 esac
52
53 board_config_flush
54
55 exit 0