aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm63xx/base-files
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2014-07-12 12:31:30 +0000
committerJonas Gorski <jogo@openwrt.org>2014-07-12 12:31:30 +0000
commitaee666d8f9bd92bd8ebd7ec53631f4d5a6d36fba (patch)
treef68eca6cd9095a976fdac27d3f9f89bbfda226db /target/linux/brcm63xx/base-files
parentba3988fb16c1392c41e4710474fc5df1f1f92a83 (diff)
downloadupstream-aee666d8f9bd92bd8ebd7ec53631f4d5a6d36fba.tar.gz
upstream-aee666d8f9bd92bd8ebd7ec53631f4d5a6d36fba.tar.bz2
upstream-aee666d8f9bd92bd8ebd7ec53631f4d5a6d36fba.zip
brcm63xx: Use model name for ADB P.DG A4001N1
This patch also makes use of the new leds script. Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> SVN-Revision: 41585
Diffstat (limited to 'target/linux/brcm63xx/base-files')
-rw-r--r--target/linux/brcm63xx/base-files/etc/uci-defaults/01_leds8
-rwxr-xr-xtarget/linux/brcm63xx/base-files/lib/brcm63xx.sh2
2 files changed, 6 insertions, 4 deletions
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)