Files
wakey/scripts/init/openwrt/update_wakey
T
lda e26d893e5f deploy fix i think idk
if i still dont release then it will still loop
2025-08-29 07:19:06 +07:00

26 lines
416 B
Bash

#!/bin/sh /etc/rc.common
START=66
USE_PROCD=1
# reboot == new file.
FLAG=/var/wakey_updated.flag
start_service() {
[ -f "$FLAG" ] && return
procd_open_instance
procd_set_param command /bin/sh -c \
'while ! /etc/ldlda_help/update_wakey.sh; do sleep 5; done'
procd_set_param stdout 1
procd_set_param stderr 1
procd_close_instance
}
stop_service() {
: # no-op
}
post_service() {
touch "$FLAG"
}