From 485057f42d060637d1ea3e0e2b76eedbbac2ae06 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 12 Jun 2016 15:15:16 +0200 Subject: [PATCH] Put default configuration in config.sh --- config.sh | 22 ++++++++++++++++++++++ update-mirrors | 8 -------- 2 files changed, 22 insertions(+), 8 deletions(-) create mode 100644 config.sh diff --git a/config.sh b/config.sh new file mode 100644 index 0000000..f358558 --- /dev/null +++ b/config.sh @@ -0,0 +1,22 @@ +## Default config.sh +# +# Here one can change the settings used to update the mirrors +# configuration file. + +# The base URL for Archlinux's mirror list +url="https://www.archlinux.org/mirrorlist" + +# Mirrors in which countries should be selected +countries=("BE" "NL") + +# Mirrors with which protocols should be selected +protocols=("http" "https") + +# Mirrors with which IP versions should be selected +ip_versions=(4) + +# Should the mirror status be used to select mirrors +use_mirror_status="on" + +# Where should the mirror list be saved. +dest="/etc/pacman.d/mirrorlist" diff --git a/update-mirrors b/update-mirrors index cf27b21..a17b19e 100755 --- a/update-mirrors +++ b/update-mirrors @@ -1,13 +1,5 @@ #!/bin/bash -# Changeable options -url="https://www.archlinux.org/mirrorlist" -countries=("BE" "NL") -protocols=("http" "https") -ip_versions=(4) -use_mirror_status="on" -dest="/etc/pacman.d/mirrorlist" - # Functions function fold () { /usr/bin/fold --spaces --width=$(tput cols); }