added reflector service
This commit is contained in:
parent
4ee086ace9
commit
3ba2639680
9 changed files with 4 additions and 47 deletions
|
@ -10,9 +10,10 @@ pacman_vars() {
|
|||
init() {
|
||||
pacman -Syu --noconfirm
|
||||
echo 'Installing reflector'
|
||||
sudo pacman -S reflector --noconfirm
|
||||
pacman -S reflector --noconfirm
|
||||
echo 'Generating mirrorlist...'
|
||||
reflector -c pt,es,fr,uk --sort rate | tee /etc/pacman.d/mirrorlist
|
||||
printf "--save /etc/pacman.d/mirrorlist\n--protocol https\n--country Portugal,Spain,France,Unite\ Kigdom,Germany,Netherlands\n--latest 50\n--score 10\n--sort rate" | tee /etc/xdg/reflector/reflector.conf
|
||||
systemctl enable --now reflector.service
|
||||
pacman -S sed
|
||||
echo "Performing config changes to pacman"
|
||||
pacman_vars
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue