From e3bf4378cccf5ea95e9bea4051ac326ebad33d85 Mon Sep 17 00:00:00 2001 From: Jonas Gorski Date: Sat, 12 Jul 2014 12:31:30 +0000 Subject: brcm63xx: Use model name for ADB P.DG A4001N1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch also makes use of the new leds script. Signed-off-by: Álvaro Fernández Rojas Signed-off-by: Jonas Gorski git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41585 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds | 8 +++++--- target/linux/brcm63xx/base-files/lib/brcm63xx.sh | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'target/linux/brcm63xx/base-files') diff --git a/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds b/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds index 6007e38218..ae7ed96093 100644 --- a/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds @@ -1,14 +1,16 @@ #!/bin/sh # -# Copyright (C) 2013 OpenWrt.org +# Copyright (C) 2013-2014 OpenWrt.org # - . /lib/functions/uci-defaults.sh . /lib/brcm63xx.sh - case "$board_name" in +963281T_TEF) + ucidef_set_led_netdev "lan" "LAN" "A4001N1:green:eth" "eth0" + ucidef_set_led_usbdev "usb" "USB" "A4001N1:green:3g" "1-1" + ;; 'F@ST2704V2') ucidef_set_led_usbdev "usb" "USB" "F@ST2704V2:green:usb" "1-1" ;; diff --git a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh index c6b2d20540..afacffcd9a 100755 --- a/target/linux/brcm63xx/base-files/lib/brcm63xx.sh +++ b/target/linux/brcm63xx/base-files/lib/brcm63xx.sh @@ -54,7 +54,7 @@ brcm63xx_detect() { ;; 963281T_TEF) brcm63xx_has_reset_button="true" - status_led="963281T_TEF:green:power" + status_led="A4001N1:green:power" ifname=eth0 ;; 96348GW) -- cgit v1.2.3