gluon-setup-mode: get status-led from device-tree

With this commit, the status-led is set to be the "led-running"
device-tree alias for targets which do not implement the get_status_led
method in /etc/diag.sh.
This commit is contained in:
David Bauer 2019-09-17 21:51:48 +02:00 committed by Martin Weinelt
parent 09780191cb
commit dc8d5d3ca9

View File

@ -6,6 +6,12 @@ start() {
/etc/init.d/led start /etc/init.d/led start
. /etc/diag.sh . /etc/diag.sh
get_status_led
get_status_led 2> /dev/null
if [ -z $status_led ]; then
status_led="$running"
fi
status_led_set_timer 1000 300 status_led_set_timer 1000 300
} }