diff options
author | Zoltan Herpai <wigyori@uid0.hu> | 2014-12-12 12:01:39 +0000 |
---|---|---|
committer | Zoltan Herpai <wigyori@uid0.hu> | 2014-12-12 12:01:39 +0000 |
commit | 50f9d27da8266c9c9e612574a73684758aae5507 (patch) | |
tree | bdebe877a808e598f8ca0945dba8405b32860f4f /target/linux/mxs/base-files | |
parent | 1014bb0fb47be8159f80be86ffe1e0ea14106d2e (diff) | |
download | mtk-20170518-50f9d27da8266c9c9e612574a73684758aae5507.zip mtk-20170518-50f9d27da8266c9c9e612574a73684758aae5507.tar.gz mtk-20170518-50f9d27da8266c9c9e612574a73684758aae5507.tar.bz2 |
mxs: fix automatic status led detection
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
SVN-Revision: 43650
Diffstat (limited to 'target/linux/mxs/base-files')
-rw-r--r-- | target/linux/mxs/base-files/etc/diag.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/mxs/base-files/etc/diag.sh b/target/linux/mxs/base-files/etc/diag.sh index e48fa96..683e123 100644 --- a/target/linux/mxs/base-files/etc/diag.sh +++ b/target/linux/mxs/base-files/etc/diag.sh @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (C) 2013 OpenWrt.org +# Copyright (C) 2013-2014 OpenWrt.org . /lib/functions/leds.sh . /lib/mxs.sh @@ -13,7 +13,7 @@ get_status_led() { status_led="green" ;; *) - status_led=$(cd /sys/class/leds && ls -1 *:status 2> /dev/null | head -n 1) + status_led=$(cd /sys/class/leds && ls -1d *:status 2> /dev/null | head -n 1) ;; esac } |