summarylogtreecommitdiffstats
path: root/freedns-daemon.sh
diff options
context:
space:
mode:
Diffstat (limited to 'freedns-daemon.sh')
-rwxr-xr-xfreedns-daemon.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/freedns-daemon.sh b/freedns-daemon.sh
new file mode 100755
index 000000000000..0d94c3ce8784
--- /dev/null
+++ b/freedns-daemon.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+
+if [ -z "$1" ]; then
+ file="/etc/freedns-daemon/urls"
+else
+ file=$1
+fi
+
+while true;
+do
+ while read line; do
+
+ echo "readed: $line"
+ #do not execute comments
+ if [[ "$line" != \#* ]];then
+ echo "curling: $line"
+ #do execute that
+ curl --max-time 10 --retry 5 --retry-delay 10 $line &
+ fi
+
+ done <"$file"
+ sleep 1h
+done