gluon/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S96led
David Bauer dc8d5d3ca9 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.
2019-10-30 00:06:14 +01:00

18 lines
208 B
Bash
Executable File

#!/bin/sh /etc/rc.common
START=96
start() {
/etc/init.d/led start
. /etc/diag.sh
get_status_led 2> /dev/null
if [ -z $status_led ]; then
status_led="$running"
fi
status_led_set_timer 1000 300
}