Author: wigyori Date: 2014-12-12 13:01:39 +0100 (Fri, 12 Dec 2014) New Revision: 43650
Modified: trunk/target/linux/mxs/base-files/etc/diag.sh Log: mxs: fix automatic status led detection Signed-off-by: Michael Heimpold <[email protected]> Signed-off-by: Zoltan HERPAI <[email protected]> Modified: trunk/target/linux/mxs/base-files/etc/diag.sh =================================================================== --- trunk/target/linux/mxs/base-files/etc/diag.sh 2014-12-12 11:43:56 UTC (rev 43649) +++ trunk/target/linux/mxs/base-files/etc/diag.sh 2014-12-12 12:01:39 UTC (rev 43650) @@ -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 @@ 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 } _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
