1#!/bin/sh 2# 3# Copyright (C) 2014-2015 OpenWrt.org 4# 5 6. /lib/functions/uci-defaults.sh 7. /lib/mvebu.sh 8 9board_config_update 10 11board=$(mvebu_board_name) 12 13case "$board" in 14armada-385-linksys-caiman) 15 ucidef_set_led_netdev "wan" "WAN" "pca963x:caiman:white:wan" "eth0" 16 ucidef_set_led_usbdev "usb2" "USB2" "pca963x:caiman:white:usb2" "1-1" 17 ucidef_set_led_usbdev "usb3" "USB3" "pca963x:caiman:white:usb3_1" "2-1" 18 ;; 19armada-385-linksys-cobra) 20 ucidef_set_led_netdev "wan" "WAN" "pca963x:cobra:white:wan" "eth0" 21 ucidef_set_led_usbdev "usb2" "USB2" "pca963x:cobra:white:usb2" "1-1" 22 ucidef_set_led_usbdev "usb3" "USB3" "pca963x:cobra:white:usb3_1" "2-1" 23 ;; 24armada-385-linksys-rango) 25 ucidef_set_led_netdev "wan" "WAN" "pca963x:rango:white:wan" "eth0" 26 ucidef_set_led_usbdev "usb2" "USB2" "pca963x:rango:white:usb2" "1-1" 27 ucidef_set_led_usbdev "usb3" "USB3" "pca963x:rango:white:usb3_1" "2-1" 28 ;; 29armada-385-linksys-shelby) 30 ucidef_set_led_netdev "wan" "WAN" "pca963x:shelby:white:wan" "eth0" 31 ucidef_set_led_usbdev "usb2" "USB2" "pca963x:shelby:white:usb2" "1-1" 32 ucidef_set_led_usbdev "usb3" "USB3" "pca963x:shelby:white:usb3_1" "2-1" 33 ;; 34armada-xp-linksys-mamba) 35 ucidef_set_led_netdev "wan" "WAN" "mamba:white:wan" "eth1" 36 ucidef_set_led_usbdev "usb2" "USB2" "mamba:white:usb2" "1-1" 37 ucidef_set_led_usbdev "usb3" "USB3" "mamba:white:usb3_1" "2-2" 38 ;; 39 40esac 41 42board_config_flush 43 44exit 0 45