aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/kirkwood/base-files/etc/diag.sh
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2018-01-08 23:49:22 +0100
committerMathias Kresin <dev@kresin.me>2018-01-09 22:06:55 +0100
commit0674a99f7eb0c630b25eca774e3fe341d6c0efc8 (patch)
treee4531d269100322f0133d8119861bfc47e60efce /target/linux/kirkwood/base-files/etc/diag.sh
parent0e94df65ca7f6a5c39421100c223c92889205b6f (diff)
downloadupstream-0674a99f7eb0c630b25eca774e3fe341d6c0efc8.tar.gz
upstream-0674a99f7eb0c630b25eca774e3fe341d6c0efc8.tar.bz2
upstream-0674a99f7eb0c630b25eca774e3fe341d6c0efc8.zip
kirkwood: sort occurrences of boardame alphabetically
This restores the alphabetical sort that was present before the renaming of boardname. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/kirkwood/base-files/etc/diag.sh')
-rwxr-xr-xtarget/linux/kirkwood/base-files/etc/diag.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/target/linux/kirkwood/base-files/etc/diag.sh b/target/linux/kirkwood/base-files/etc/diag.sh
index ec9eead70d..0667ad29fe 100755
--- a/target/linux/kirkwood/base-files/etc/diag.sh
+++ b/target/linux/kirkwood/base-files/etc/diag.sh
@@ -6,10 +6,8 @@
get_status_led() {
case $(board_name) in
- seagate,dockstar|\
- seagate,goflexhome|\
- seagate,goflexnet)
- status_led="status:orange:fault"
+ cisco,on100)
+ status_led="on100:green:health"
;;
cloudengines,pogoe02)
status_led="pogo_e02:orange:fault"
@@ -23,12 +21,14 @@ get_status_led() {
linksys,viper)
status_led="viper:white:health"
;;
+ seagate,dockstar|\
+ seagate,goflexhome|\
+ seagate,goflexnet)
+ status_led="status:orange:fault"
+ ;;
zyxel,nsa310b)
status_led="nsa310:green:sys"
;;
- cisco,on100)
- status_led="on100:green:health"
- ;;
esac
}