Files
wakey/scripts/init/openwrt/update_wakey
T
lda ffbe6851df
release / build (push) Successful in 4m25s
SPEED I NEEEEEED THIIIIISSSSSSSSS
2026-01-31 19:26:30 +07:00

25 lines
605 B
Bash

#!/bin/sh /etc/rc.common
START=66
# does this work now fam
# exposal to wg is separate; so weon care
do_update() {
MAX_RETRIES=10
RETRY_COUNT=0
while [ "$RETRY_COUNT" -lt "$MAX_RETRIES" ]; do
if /etc/ldlda_help/update_wakey.sh; then
echo "[update_wakey] Success at $(date)"
return 0
fi
RETRY_COUNT=$((RETRY_COUNT + 1))
echo "[update_wakey] Retry $RETRY_COUNT at $(date)"
sleep 5
done
echo "[update_wakey] Too many retries. Exiting at $(date)"
return 1
}
start() {
do_update >>/var/log/update_wakey.log 2>&1 &
}