ipq40xx: add get_status_led to diag.sh
authorDavid Bauer <mail@david-bauer.net>
Tue, 12 Jun 2018 23:37:55 +0000 (01:37 +0200)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Sun, 15 Jul 2018 18:08:44 +0000 (20:08 +0200)
commitdc52b7b104aa2b75a55d905dd2a416328c84cde7
tree462deb2555f86d6581bdbe1604cd948800edc243
parent7fc7128b086a9447f4ac043fd403e359019ddbab
ipq40xx: add get_status_led to diag.sh

This commit adds the get_status_led method to diag.sh, which sets the
boot-led as status-led for scripts using this method to get a
status-led.

This method is used platform-independent in downstream project gluon to
set the LED used to indicate the config-mode.

Signed-off-by: David Bauer <mail@david-bauer.net>
(cherry picked from commit 4fc005197a320ff728544eba8028f7a9f23e1868)
target/linux/ipq40xx/base-files/etc/diag.sh