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); }