Skip to content
Snippets Groups Projects
Commit dc8d5d3c authored by David Bauer's avatar David Bauer Committed by Martin Weinelt
Browse files

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.
parent 09780191
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,12 @@ start() { ...@@ -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
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment