diff options
| author | Nippy <nippy@Beller-Mac-mini.lan> | 2026-11-06 19:12:01 +0100 |
|---|---|---|
| committer | Nippy <nippy@Beller-Mac-mini.lan> | 2026-11-06 19:12:02 +0100 |
| commit | 89fde69f8e46dd72022d57e9976fe2ab4583de5d (patch) | |
| tree | 777dbc158c0f618c6bc3db6efc9b882a7580b579 /raveos-calamares-theme/etc/calamares/modules/raveos-tukor-rangsor.sh | |
| parent | 487470fee87f7ef2a773240784aa5a60017a580e (diff) | |
| download | RaveOS-PKGBUILD-89fde69f8e46dd72022d57e9976fe2ab4583de5d.tar.gz RaveOS-PKGBUILD-89fde69f8e46dd72022d57e9976fe2ab4583de5d.zip | |
wifi fix reflector fix
Diffstat (limited to 'raveos-calamares-theme/etc/calamares/modules/raveos-tukor-rangsor.sh')
| -rwxr-xr-x | raveos-calamares-theme/etc/calamares/modules/raveos-tukor-rangsor.sh | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/raveos-calamares-theme/etc/calamares/modules/raveos-tukor-rangsor.sh b/raveos-calamares-theme/etc/calamares/modules/raveos-tukor-rangsor.sh new file mode 100755 index 0000000..312030b --- /dev/null +++ b/raveos-calamares-theme/etc/calamares/modules/raveos-tukor-rangsor.sh @@ -0,0 +1,29 @@ +#!/bin/bash +set -uo pipefail + +LISTA=/etc/pacman.d/mirrorlist +UJ=$(mktemp) + +for _ in $(seq 1 90); do + systemctl is-active --quiet reflector-once.service chaotic-rankmirrors.service || break + sleep 1 +done + +echo ">>> [tukor] Arch tukrok rangsorolasa" +if timeout 150 reflector --country HU,AT,DE,PL,CZ,SK --protocol https --completion-percent 100 --delay 3 \ + --latest 20 --sort rate --number 10 --download-timeout 10 --connection-timeout 5 --threads 5 \ + --save "$UJ" && grep -q '^Server' "$UJ"; then + cp -f "$LISTA" "$LISTA.regi" 2>/dev/null || true + install -m644 "$UJ" "$LISTA" + echo ">>> [tukor] Uj tukorlista:" + grep '^Server' "$LISTA" +else + echo ">>> [tukor] A reflector nem sikerult, a meglevo tukorlista marad" +fi +rm -f "$UJ" + +if [ -x /usr/local/bin/chaotic-rankmirrors ]; then + timeout 120 /usr/local/bin/chaotic-rankmirrors || true +fi + +exit 0 |