gluon/package/gluon-setup-mode/files/lib/gluon/setup-mode/rc.d/S96led
aiyion.prime 26b5764c74 gluon-setup-mode: add fallback led-boot as status
for devices in targets that do no implement `get_status_led` in /etc/diag.sh
and do not have an led-running in their dts
2022-07-10 23:22:11 +02:00

21 lines
262 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
if [ -z $status_led ]; then
status_led="$boot"
fi
status_led_set_timer 1000 300
}