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
21 lines
262 B
Bash
Executable File
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
|
|
}
|