LED setting

set led to notice state when init. After all init done, change to OK state
This commit is contained in:
ke.hu 2017-03-20 16:16:45 +01:00
parent ce64054ddd
commit 62a27eef77
2 changed files with 16 additions and 1 deletions

View file

@ -0,0 +1,15 @@
#!/bin/sh /etc/rc.common
START=99
USE_PROCD=0
NAME=peripheral_led_normal
start_service() {
ubus -t 2 wait_for led.status
ubus call led.status set '{"state":"ok"}'
ubus -t 2 wait_for button
}

View file

@ -16,7 +16,7 @@ start_service() {
service_running() {
ubus -t 2 wait_for led.status
ubus call led.status set '{"state":"ok"}'
ubus call led.status set '{"state":"notice"}'
ubus -t 2 wait_for button
}