From 5fa47d6f93eb5e2e0925932b7bd44f00aa9318a6 Mon Sep 17 00:00:00 2001 From: Conrad Lara - KG6JEI Date: Sun, 17 Jan 2016 20:09:11 -0800 Subject: [PATCH] bugfix: ar71xx: airrouter: Use "Globe" LED to indicate mesh connection --- files/usr/local/bin/linkled | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/files/usr/local/bin/linkled b/files/usr/local/bin/linkled index 016c4fc0..979a2310 100755 --- a/files/usr/local/bin/linkled +++ b/files/usr/local/bin/linkled @@ -18,7 +18,17 @@ LICENSE -LINK1LED=`readlink -f /sys/class/leds/*link1` +BOARD_TYPE=$(/usr/local/bin/get_hardwaretype) + +case "$BOARD_TYPE" in + airrouter) + LINK1LED=$(readlink -f /sys/class/leds/ubnt\:green\:globe) + ;; + *) + LINK1LED=$(readlink -f /sys/class/leds/*link1) + ;; +esac + { while true; do