From 847fb865d739b9fcd9ce3813377c54377938b582 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Tue, 1 Nov 2011 11:20:44 +0000 Subject: [PATCH] ar71xx: unify LED names on TP-Link boards SVN-Revision: 28701 --- target/linux/ar71xx/base-files/etc/diag.sh | 31 ++++++------------- .../base-files/etc/uci-defaults/tl-mr3x20 | 2 +- .../base-files/etc/uci-defaults/tl-wr1043nd | 4 +-- .../base-files/etc/uci-defaults/tl-wr941nd | 2 +- .../files/arch/mips/ar71xx/mach-tl-mr3x20.c | 6 ++-- .../arch/mips/ar71xx/mach-tl-wa901nd-v2.c | 6 ++-- .../files/arch/mips/ar71xx/mach-tl-wa901nd.c | 4 +-- .../files/arch/mips/ar71xx/mach-tl-wr1043nd.c | 8 ++--- .../files/arch/mips/ar71xx/mach-tl-wr703n.c | 2 +- .../files/arch/mips/ar71xx/mach-tl-wr741nd.c | 4 +-- .../files/arch/mips/ar71xx/mach-tl-wr841n.c | 6 ++-- .../files/arch/mips/ar71xx/mach-tl-wr941nd.c | 8 ++--- 12 files changed, 36 insertions(+), 47 deletions(-) diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index ad4fc28b72..daa7407332 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -87,29 +87,18 @@ get_status_led() { tew-632brp) status_led="tew-632brp:green:status" ;; - tl-mr3220 | tl-mr3420) - status_led="tl-mr3x20:green:system" - ;; - tl-wa901nd) - status_led="tl-wa901nd:green:system" - ;; - tl-wa901nd-v2) - status_led="tl-wa901nd-v2:green:system" - ;; - tl-wr1043nd) - status_led="tl-wr1043nd:green:system" + tl-mr3220 | \ + tl-mr3420 | \ + tl-wa901nd | \ + tl-wa901nd-v2 | \ + tl-wr1043nd | \ + tl-wr741nd | \ + tl-wr841n-v1 | \ + tl-wr941nd) + status_led="tp-link:green:system" ;; tl-wr703n) - status_led="tl-wr703n:blue:system" - ;; - tl-wr741nd) - status_led="tl-wr741nd:green:system" - ;; - tl-wr841n-v1) - status_led="tl-wr841n:green:system" - ;; - tl-wr941nd) - status_led="tl-wr941nd:green:system" + status_led="tp-link:blue:system" ;; unifi) status_led="ubnt:green:dome" diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/tl-mr3x20 b/target/linux/ar71xx/base-files/etc/uci-defaults/tl-mr3x20 index c9e5e38819..bdb7c3e785 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/tl-mr3x20 +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/tl-mr3x20 @@ -11,7 +11,7 @@ tlmr3x20_setup_leds() { uci batch <