summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorXiao Pan <xyz@flylightning.xyz>2025-07-03 14:53:06 +0800
committerXiao Pan <xyz@flylightning.xyz>2025-07-03 14:53:06 +0800
commitf9e2ea7344d9fbfc0c8d10599192dc3bfc31337b (patch)
tree1ffcddb241049f527103fe853ba5af7bbee5a7c6 /sh
parenta2a3ab494d4a7fddad4281d3f2554d6ee5cc8ff9 (diff)
upd remove aa because I removed aa
Diffstat (limited to 'sh')
-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
}