I think that magic happens in the "set_mirror" function of the /etc/init.d/antiX-init script:Gaer Boy wrote:On a Live boot, using F2 to select English (UK) the UK debian mirrors are listed in sources. I don't know where this magic happens, but could something similar be done for the MX mirrors?
Code: Select all
set_mirror() {
local mirror=$1
case "$mirror" in
[a-zA-Z][a-zA-Z]) ;;
*)
error "$_Bad_mirror_code_X_expected_two_letters_" $(pquote $mirror)
return;;
esac
source_list=/etc/apt/sources.list.d/debian.list
first_write $source_list || [ "$CMD_MIRROR" ] || return
echo_live "$_Localizing_X_to_Y_mirror_" $(pquote $source_list) $(pquote $MIRROR)
sed -i "s=/ftp\.\(..\.\)\\?debian\.org/=/ftp.$mirror.debian.org/=" $source_list
}