|
|
|
@ -434,8 +434,9 @@ configure_mirrorlist() {
|
|
|
|
|
DIALOG " $_MirrorlistTitle " --default-item ${HIGHLIGHT_SSUB} --menu "\n$_MirrorlistBody\n " 25 60 4 \
|
|
|
|
|
"1" "$_MirrorPacman" \
|
|
|
|
|
"2" "$_MirrorConfig" \
|
|
|
|
|
"3" "$_MirrorRankTitle" \
|
|
|
|
|
"4" "$_Back" 2>${ANSWER}
|
|
|
|
|
"3" "$_MirrorRankTitleContinent" \
|
|
|
|
|
"4" "$_MirrorRankTitle" \
|
|
|
|
|
"5" "$_Back" 2>${ANSWER}
|
|
|
|
|
HIGHLIGHT_SSUB=$(cat ${ANSWER})
|
|
|
|
|
|
|
|
|
|
case $(cat ${ANSWER}) in
|
|
|
|
@ -448,7 +449,9 @@ configure_mirrorlist() {
|
|
|
|
|
"2") nano /etc/pacman-mirrors.conf
|
|
|
|
|
check_for_error "edit pacman-mirrors.conf"
|
|
|
|
|
;;
|
|
|
|
|
"3") rank_mirrors
|
|
|
|
|
"3") rank_mirrors_continent
|
|
|
|
|
;;
|
|
|
|
|
"4") rank_mirrors
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
*) loopmeu=0
|
|
|
|
@ -477,6 +480,25 @@ rank_mirrors() {
|
|
|
|
|
ini branch "${branch}"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
rank_mirrors_continent() {
|
|
|
|
|
#Choose the branch for mirrorlist
|
|
|
|
|
local branch=""
|
|
|
|
|
local oldbranch="$(grep -oE -m 1 "stable|stable-staging|testing|unstable" /etc/pacman.d/mirrorlist)"
|
|
|
|
|
branch=$(DIALOG " $_MirrorBranch " --radiolist "\n$_UseSpaceBar\n " 0 0 3 \
|
|
|
|
|
"stable" "-" on \
|
|
|
|
|
"stable-staging" "-" off \
|
|
|
|
|
"testing" "-" off \
|
|
|
|
|
"unstable" "-" off 3>&1 1>&2 2>&3)
|
|
|
|
|
[[ -z "${branch}" ]] && return 0
|
|
|
|
|
clear
|
|
|
|
|
DIALOG " $_MirrorBranch " --msgbox "\n$_RankMirrors\n " 0 0
|
|
|
|
|
clear
|
|
|
|
|
pacman-mirrors -iaB "${branch}" --continent
|
|
|
|
|
[[ "$oldbranch" != "$branch" ]] && pacman -Syy
|
|
|
|
|
echo ""
|
|
|
|
|
ini branch "${branch}"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# Simple code to show devices / partitions.
|
|
|
|
|
show_devices() {
|
|
|
|
|
lsblk -o NAME,MODEL,TYPE,FSTYPE,SIZE,MOUNTPOINT | grep "disk\|part\|lvm\|crypt\|NAME\|MODEL\|TYPE\|FSTYPE\|SIZE\|MOUNTPOINT" > /tmp/.devlist
|
|
|
|
|