Update 0-preinstall.sh

This commit is contained in:
Danneman92 2022-08-26 16:33:23 +01:00
parent ef50037ece
commit cb40b27d3a
1 changed files with 6 additions and 1 deletions

View File

@ -39,7 +39,12 @@ echo -ne "
Setting up $iso mirrors for faster downloads
-------------------------------------------------------------------------
"
reflector --age 48 -c GB,IS --connection-timeout 1 --download-timeout 5 --score 20 --sort rate -n 20 --save /etc/pacman.d/mirrorlist
if [[ "${ISO}" == "FO" ]]; then
reflector --age 48 -c GB,IS --connection-timeout 1 --download-timeout 5 --score 20 --sort rate -n 20 --save /etc/pacman.d/mirrorlist
else
reflector -a 48 -c $iso -f 5 -l 20 --sort rate --save /etc/pacman.d/mirrorlist
fi
mkdir /mnt &>/dev/null # Hiding error message if any
echo -ne "
-------------------------------------------------------------------------