switch to typescript
This commit is contained in:
parent
0c313f9f48
commit
cdec693d39
8 changed files with 104 additions and 32 deletions
20
run-loop
Executable file
20
run-loop
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/bash
|
||||
set -e
|
||||
cd "$(dirname "$(realpath "$0")")"
|
||||
|
||||
|
||||
interval="6h"
|
||||
|
||||
|
||||
while true
|
||||
do
|
||||
until ping -c 1 '0.0.0.0' > /dev/null
|
||||
do echo "[run-loop] waiting for internet connection."
|
||||
done
|
||||
|
||||
./run-rotate
|
||||
|
||||
echo "[run-loop] Waiting $interval from"
|
||||
echo " $(date)"
|
||||
sleep "$interval"
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue