2018-08-13 14:00:59 +02:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
# check for internet connection
|
2019-10-29 19:40:41 +01:00
|
|
|
ip route ls | grep -q '.'
|
2018-08-13 14:00:59 +02:00
|
|
|
|
|
|
|
# check if the gpg-agent is running
|
2019-10-29 19:40:41 +01:00
|
|
|
pgrep gpg-agent > /dev/null
|
2018-08-13 14:00:59 +02:00
|
|
|
|
2019-11-27 14:46:36 +01:00
|
|
|
vdirsyncer -v CRITICAL sync 2>&1
|
2018-08-13 14:00:59 +02:00
|
|
|
|
|
|
|
exec sleep 10m
|