summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files/etc/diag.sh
diff options
context:
space:
mode:
authorL. D. Pinney <ldpinney@gmail.com>2016-12-29 01:43:08 -0600
committerMathias Kresin <dev@kresin.me>2017-01-02 19:16:54 +0100
commitb28e94d4bfa1f81219765fc395e63ca81badd8df (patch)
tree5acedaffb8283b4ffb616e7dd014016498aa5824 /target/linux/ramips/base-files/etc/diag.sh
parentfd718c50256536ed082852d735dc7690d7604418 (diff)
downloadmtk-20170518-b28e94d4bfa1f81219765fc395e63ca81badd8df.zip
mtk-20170518-b28e94d4bfa1f81219765fc395e63ca81badd8df.tar.gz
mtk-20170518-b28e94d4bfa1f81219765fc395e63ca81badd8df.tar.bz2
ramips: MiWiFi Nano fixes
Use the the dt-bindings macros and add the reset button. Set the correct polarity for the LEDs and drop the default state. Remove all trigger for the LEDs. According to the manual the LEDs are only used to show the operation state, where blue means normal operation. Use the MAC-Addresses stored in EEPROM for the ethernet and the wireless interface. Signed-off-by: L. D. Pinney <ldpinney@gmail.com> [use leds only for boot status indication, add proper commit message] Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ramips/base-files/etc/diag.sh')
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 6b64d3b..a22be5e 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -152,11 +152,11 @@ get_status_led() {
status_led="$board:blue:wifi"
;;
m3|\
- m4)
+ m4|\
+ miwifi-nano)
status_led="$board:blue:status"
;;
miwifi-mini|\
- miwifi-nano|\
zte-q7)
status_led="$board:red:status"
;;