1#!/bin/sh 2# 3# Copyright (C) 2013-2015 OpenWrt.org 4# 5 6. /lib/functions/uci-defaults.sh 7. /lib/brcm63xx.sh 8 9board_config_update 10 11case "$(brcm63xx_board_name)" in 12a4001n1) 13 ucidef_set_led_netdev "lan" "LAN" "A4001N1:green:eth" "eth0" 14 ucidef_set_led_usbdev "usb" "USB" "A4001N1:green:3g" "1-1" 15 ;; 16a4001n) 17 ucidef_set_led_usbdev "usb" "USB" "A4001N:green:usb" "1-1" 18 ;; 19dgnd3700v1_dgnd3800b) 20 ucidef_set_led_netdev "lan" "LAN" "DGND3700v1_3800B:green:lan" "eth0.1" 21 ucidef_set_led_netdev "wan" "WAN" "DGND3700v1_3800B:green:inet" "eth0.2" 22 ucidef_set_led_netdev "wlan0" "WIFI2G" "DGND3700v1_3800B:green:wifi2g" "wlan0" 23 ucidef_set_led_netdev "wlan1" "WIFI5G" "DGND3700v1_3800B:blue:wifi5g" "wlan1" 24 ucidef_set_led_usbdev "usb1" "USB1" "DGND3700v1_3800B:green:usb-back" "1-1" 25 ucidef_set_led_usbdev "usb2" "USB2" "DGND3700v1_3800B:green:usb-front" "1-2" 26 ;; 27evg2000) 28 ucidef_set_led_netdev "lan" "LAN" "EVG2000:green:lan" "eth0" 29 ucidef_set_led_netdev "wan" "WAN" "EVG2000:green:wan" "eth1" 30 ucidef_set_led_netdev "wlan0" "WIFI" "EVG2000:green:wireless" "wlan0" 31 ucidef_set_led_usbdev "usb1" "USB1" "EVG2000:green:voip1" "1-1" 32 ucidef_set_led_usbdev "usb2" "USB2" "EVG2000:green:voip2" "1-2" 33 ;; 34fast2704n) 35 ucidef_set_led_netdev "wan" "WAN" "F@ST2704N:green:inet" "eth0.2" 36 ;; 37fast2704v2) 38 ucidef_set_led_usbdev "usb" "USB" "F@ST2704V2:green:usb" "1-1" 39 ;; 40hg553) 41 ucidef_set_led_netdev "lan" "LAN" "HW553:blue:lan" "eth0" 42 ucidef_set_led_usbdev "usb1" "USB1" "HW553:red:hspa" "1-1" 43 ucidef_set_led_usbdev "usb2" "USB2" "HW553:blue:hspa" "1-2" 44 ;; 45hg556a_*) 46 ucidef_set_led_netdev "lan" "LAN" "HW556:red:dsl" "eth0" 47 ucidef_set_led_usbdev "usb" "USB" "HW556:red:hspa" "1-2" 48 ;; 49hg622) 50 ucidef_set_led_usbdev "usb" "USB" "HG622:green:usb" "1-2" 51 ;; 52hg655b) 53 ucidef_set_led_usbdev "usb" "USB" "HW65x:green:usb" "1-2" 54 ;; 55homehub2a) 56 ucidef_set_led_netdev "lan" "LAN" "HOMEHUB2A:blue:broadband" "eth0.1" 57 ucidef_set_led_netdev "wlan0" "WIFI" "HOMEHUB2A:green:wireless" "wlan0" 58 ucidef_set_led_usbdev "usb1" "USB1" "HOMEHUB2A:blue:phone" "1-1" 59 ucidef_set_led_usbdev "usb2" "USB2" "HOMEHUB2A:green:phone" "2-1" 60 ;; 61r5010un_v2) 62 ucidef_set_led_usbdev "usb" "USB" "R5010UNv2:green:usb" "1-1" 63 ;; 64esac 65 66board_config_flush 67 68exit 0 69