aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/base-files/etc/diag.sh
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-01-07 16:47:38 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-01-07 16:47:38 +0000
commitc2311543273220fcd4d0201bd57ad33a9dac3401 (patch)
treeab20c32cd93d7eb8018c4e58799ea097ac6f8cf8 /target/linux/ar71xx/base-files/etc/diag.sh
parent9f1c7b9712344b43e5607128e48684579808a68f (diff)
downloadupstream-c2311543273220fcd4d0201bd57ad33a9dac3401.tar.gz
upstream-c2311543273220fcd4d0201bd57ad33a9dac3401.tar.bz2
upstream-c2311543273220fcd4d0201bd57ad33a9dac3401.zip
ar71xx: Fix LED definitions for the DRAGINO2 board
This patch fixes LED definitions for the DRAGINO2 board. 1. It renames the Router/USB led to System, as it is now marked "SYS" on the board. 2. It gives control of the LAN and WAN leds and some other GPIOs to Linux. 3. It fixes the active_low property for the LAN and WAN leds. 4. It sets up WLAN, LAN and WAN leds in the UCI defaults. 5. It allows usage of the System led by the diag.sh script, so it will be used to indicate boot and failsafe status. Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> Backport of r42897 git-svn-id: svn://svn.openwrt.org/openwrt/branches/barrier_breaker@43867 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/base-files/etc/diag.sh')
-rwxr-xr-xtarget/linux/ar71xx/base-files/etc/diag.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh
index 1864b11a27..fa07f39f14 100755
--- a/target/linux/ar71xx/base-files/etc/diag.sh
+++ b/target/linux/ar71xx/base-files/etc/diag.sh
@@ -62,6 +62,9 @@ get_status_led() {
dir-835-a1)
status_led="d-link:amber:power"
;;
+ dragino2)
+ status_led="dragino2:red:system"
+ ;;
eap300v2)
status_led="engenius:blue:power"
;;