50c2f8d23181efaa9bd7169eebbe02f8c5f2ee39
[openwrt/svn-archive/archive.git] / target / linux / mvebu / base-files / etc / uci-defaults / 01_leds
1 #!/bin/sh
2 #
3 # Copyright (C) 2014 OpenWrt.org
4 #
5
6 . /lib/functions/uci-defaults.sh
7 . /lib/mvebu.sh
8
9 board=$(mvebu_board_name)
10
11 case "$board" in
12 armada-385-linksys-caiman)
13 ucidef_set_led_netdev "wan" "WAN" "pca963x:caiman:white:wan" "eth0"
14 ucidef_set_led_usbdev "usb2" "USB2" "pca963x:caiman:white:usb2" "1-1"
15 ucidef_set_led_usbdev "usb3" "USB3" "pca963x:caiman:white:usb3_1" "2-1"
16 ;;
17 armada-385-linksys-cobra)
18 ucidef_set_led_netdev "wan" "WAN" "pca963x:cobra:white:wan" "eth0"
19 ucidef_set_led_usbdev "usb2" "USB2" "pca963x:cobra:white:usb2" "1-1"
20 ucidef_set_led_usbdev "usb3" "USB3" "pca963x:cobra:white:usb3_1" "2-1"
21 ;;
22 armada-xp-linksys-mamba)
23 ucidef_set_led_netdev "wan" "WAN" "mamba:white:wan" "eth1"
24 ucidef_set_led_usbdev "usb2" "USB2" "mamba:white:usb2" "1-1"
25 ucidef_set_led_usbdev "usb3" "USB3" "mamba:white:usb3_1" "2-2"
26 ;;
27
28 esac
29
30 ucidef_commit_leds
31
32 exit 0