Permalink
Browse files

update mirrorlist by download speed

  • Loading branch information...
j3nnn1 committed Aug 31, 2013
1 parent 1666993 commit 73447e7a60ccbcbc90225acd1e870cde377aebc3
Showing with 5 additions and 0 deletions.
  1. +5 −0 archlinux/update_mirrorlist.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+cp /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist.backup
+sed '/^#\S/ s|#||' -i /etc/pacman.d/mirrorlist.backup
+rankmirrors -n 6 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist

0 comments on commit 73447e7

Please sign in to comment.