treewide: remove execute bit and shebang from board.d files
[openwrt/openwrt.git] / target / linux / mvebu / cortexa9 / base-files / etc / board.d / 01_leds
1 #
2 # Copyright (C) 2014-2016 OpenWrt.org
3 # Copyright (C) 2016 LEDE-Project.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 kobol,helios4)
15 ucidef_set_led_usbport "USB" "USB" "helios4:green:usb" "usb1-port1" "usb2-port1" "usb3-port1" "usb4-port1" "usb5-port1"
16 ;;
17 linksys,wrt1200ac)
18 ucidef_set_led_netdev "wan" "WAN" "pca963x:caiman:white:wan" "wan"
19 ucidef_set_led_usbport "usb1" "USB 1" "pca963x:caiman:white:usb2" "usb1-port1"
20 ucidef_set_led_usbport "usb2" "USB 2" "pca963x:caiman:white:usb3_1" "usb2-port1" "usb3-port1"
21 ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "pca963x:caiman:white:usb3_2" "usb3-port1"
22 ;;
23 linksys,wrt1900ac-v1)
24 ucidef_set_led_netdev "wan" "WAN" "mamba:white:wan" "wan"
25 ucidef_set_led_usbport "usb1" "USB 1" "mamba:white:usb2" "usb1-port1"
26 ucidef_set_led_usbport "usb2" "USB 2" "mamba:white:usb3_1" "usb2-port1" "usb3-port1"
27 ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "mamba:white:usb3_2" "usb3-port2"
28 ;;
29 linksys,wrt1900ac-v2)
30 ucidef_set_led_netdev "wan" "WAN" "pca963x:cobra:white:wan" "wan"
31 ucidef_set_led_usbport "usb1" "USB 1" "pca963x:cobra:white:usb2" "usb1-port1"
32 ucidef_set_led_usbport "usb2" "USB 2" "pca963x:cobra:white:usb3_1" "usb2-port1" "usb3-port1"
33 ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "pca963x:cobra:white:usb3_2" "usb3-port1"
34 ;;
35 linksys,wrt1900acs)
36 ucidef_set_led_netdev "wan" "WAN" "pca963x:shelby:white:wan" "wan"
37 ucidef_set_led_usbport "usb1" "USB 1" "pca963x:shelby:white:usb2" "usb1-port1"
38 ucidef_set_led_usbport "usb2" "USB 2" "pca963x:shelby:white:usb3_1" "usb2-port1" "usb3-port1"
39 ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "pca963x:shelby:white:usb3_2" "usb3-port1"
40 ;;
41 linksys,wrt3200acm)
42 ucidef_set_led_netdev "wan" "WAN" "pca963x:rango:white:wan" "wan"
43 ucidef_set_led_usbport "usb1" "USB 1" "pca963x:rango:white:usb2" "usb1-port1"
44 ucidef_set_led_usbport "usb2" "USB 2" "pca963x:rango:white:usb3_1" "usb2-port1" "usb3-port1"
45 ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "pca963x:rango:white:usb3_2" "usb3-port1"
46 ;;
47 linksys,wrt32x)
48 ucidef_set_led_netdev "wan" "WAN" "pca963x:venom:blue:wan" "wan"
49 ucidef_set_led_usbport "usb1" "USB 1" "pca963x:venom:blue:usb2" "usb1-port1"
50 ucidef_set_led_usbport "usb2" "USB 2" "pca963x:venom:blue:usb3_1" "usb2-port1" "usb3-port1"
51 ucidef_set_led_usbport "usb2_ss" "USB 2 SS" "pca963x:venom:blue:usb3_2" "usb3-port1"
52 ;;
53 esac
54
55 board_config_flush
56
57 exit 0