summaryrefslogtreecommitdiff
path: root/archupdate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'archupdate.sh')
-rwxr-xr-xarchupdate.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/archupdate.sh b/archupdate.sh
new file mode 100755
index 0000000..8cf3d92
--- /dev/null
+++ b/archupdate.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+URL="https://stygian.failzero.net/mirror/archlinux/lastupdate"
+LOG="/var/log/mirror_health.log"
+
+for ipopt in -4 -6; do
+ if curl $ipopt -fsS "$URL" >/dev/null; then
+ echo "$(date) [$ipopt] OK" >> $LOG
+ else
+ echo "$(date) [$ipopt] FAIL" >> $LOG
+ fi
+done