dotfiles/distros/arch/sys-scripts/00-reflector.sh

12 lines
328 B
Bash
Raw Normal View History

2023-08-23 06:14:56 +02:00
#!/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