Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/find-inofficial-mirrors
diff options
context:
space:
mode:
Diffstat (limited to 'find-inofficial-mirrors')
-rwxr-xr-xfind-inofficial-mirrors19
1 files changed, 19 insertions, 0 deletions
diff --git a/find-inofficial-mirrors b/find-inofficial-mirrors
new file mode 100755
index 0000000..5f6a300
--- /dev/null
+++ b/find-inofficial-mirrors
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+sudo journalctl -b "-${1:-0}" -u rsyncd | \
+ grep ' rsync on archlinux32/' | \
+ grep -ivwF "$(
+ dig pool.mirror.archlinux32.org | \
+ sed -n '
+ s/^pool32\.ddns\.eckner\.net\.\s.*\s/(/
+ T
+ s/$/)/
+ p
+ '
+ )" | \
+ sed '
+ s/.* \(\S\+\) (\S\+)$/\1/
+ ' | \
+ sort | \
+ uniq -c | \
+ sort -k1n,1