Created
August 8, 2016 19:25
-
-
Save yupyupp/c3d9578355d6aa58a7e2ce84c0e2bc43 to your computer and use it in GitHub Desktop.
cron script to rank the Arch Linux mirrors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Place in /etc/cron.weekly | |
/usr/bin/sed -e 's/^#//' /etc/pacman.d/mirrorlist.pacnew > /etc/pacman.d/mirrorlist.nocomment | |
/usr/bin/rankmirrors -n 25 /etc/pacman.d/mirrorlist.nocomment > /etc/pacman.d/mirrorlist | |
/usr/bin/pacman -Syy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment