dotfiles/distros/arch/sys-scripts/00-reflector.sh
2023-10-14 22:38:11 +02:00

12 lines
No EOL
328 B
Bash

#!/bin/sh
# Sets up fast mirrors on arch
if ! pacman -Q reflector; then
echo "reflector was not installed"
exit 1
fi
cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
reflector -c NL -f 10 --threads 4 --save /etc/pacman.d/mirrorlist
echo "Server = arch.neo.faulty.nl/$repo/os/$arch" >> /etc/pacman.d/mirrorlist