summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsh/upd5
1 files changed, 1 insertions, 4 deletions
diff --git a/sh/upd b/sh/upd
index d8defd0..77184d8 100755
--- a/sh/upd
+++ b/sh/upd
@@ -16,7 +16,7 @@ all () {
clean
# don't run reflector if it is pp or aa or {it is studio and insp is in the same network}
# somehow ping local hostname via ipv6 is very slow, so I use ipv4 to ping
- if ! { [ "$hostname" = xyzpp ] || [ "$hostname" = xyzaa ] || { [ "$hostname" = xyzstudio ] && ping -4qc1 xyzinsp > /dev/null;};}; then
+ if ! { [ "$hostname" = xyzpp ] || { [ "$hostname" = xyzstudio ] && ping -4qc1 xyzinsp > /dev/null;};}; then
refl
fi
monthly_misc
@@ -274,9 +274,6 @@ refl () {
# need --delay so no super out of sync mirrors
case "$hostname" in
xyzib) sudo reflector --verbose --save /etc/pacman.d/mirrorlist --country ro --protocol https --delay 1 --fastest 3;;
- # aa now default wireguard to ca, so I choose to copy ca mirrorlist to aa instead
- # old cn mirrorlists code, only 2 cn mirror servers satisfied `--delay 1`, https://mirrors.jlu.edu.cn/archlinux/$repo/os/$arch is better than https://mirrors.neusoft.edu.cn/archlinux/$repo/os/$arch , the latter had issues
- #xyzaa) sudo reflector --verbose --save /etc/pacman.d/mirrorlist --country cn --protocol https --delay 1 --fastest 2;;
*) sudo reflector --verbose --save /etc/pacman.d/mirrorlist --country us --protocol https --delay 1 --latest 25 --score 25 --fastest 10;;
esac
}