#!/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