aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/base-files/etc/diag.sh
diff options
context:
space:
mode:
authorJohann Neuhauser <johann@it-neuhauser.de>2018-05-18 18:06:03 +0200
committerJohn Crispin <john@phrozen.org>2018-05-22 20:53:15 +0200
commita7e1e919afa9659f66dada5e69d1b162f447ced7 (patch)
tree18d949d909bca4f07d74df18bacf72ba92d70962 /target/linux/ath79/base-files/etc/diag.sh
parentfaf0a460c4b8d77bed270156a4454b964a551c95 (diff)
downloadupstream-a7e1e919afa9659f66dada5e69d1b162f447ced7.tar.gz
upstream-a7e1e919afa9659f66dada5e69d1b162f447ced7.tar.bz2
upstream-a7e1e919afa9659f66dada5e69d1b162f447ced7.zip
ath79: preliminary support for TP-Link WDR3600 / WDR4300 (AR9344)
working: - leds - buttons - lan / wan - usb (hub port 1 + 2) - wifi 5g - sysupgrade - ... not working: - wifi 2g Signed-off-by: Johann Neuhauser <johann@it-neuhauser.de>
Diffstat (limited to 'target/linux/ath79/base-files/etc/diag.sh')
-rw-r--r--target/linux/ath79/base-files/etc/diag.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/ath79/base-files/etc/diag.sh b/target/linux/ath79/base-files/etc/diag.sh
index 8022151378..b18463413a 100644
--- a/target/linux/ath79/base-files/etc/diag.sh
+++ b/target/linux/ath79/base-files/etc/diag.sh
@@ -2,6 +2,8 @@
. /lib/functions/leds.sh
+status_led="$(get_dt_led status)"
+
get_status_led() {
local board=$(board_name)
local boardname="${board##*,}"
@@ -23,7 +25,7 @@ get_status_led() {
}
set_state() {
- get_status_led
+ [ -z "$status_led" ] && get_status_led
case "$1" in
preinit)