# source local mirror/url choices
if [[ -e $LOCAL_URL_CONFIG ]]; then
  . $LOCAL_URL_CONFIG
fi

if [[ -d /usr/share/smgl-mirrors ]]; then
  MIRRORS=${MIRRORS:-/usr/share/smgl-mirrors}
 else
  MIRRORS=${MIRRORS:-/etc/sorcery/mirrors}
fi

# source any other mirror lists, but in reverse order to preserve precedence
for mirror in $MIRRORS; do
  mirrors="$mirror $mirrors"
done
for mirror in $mirrors; do
  if [[ -e $mirror/config/defaults ]]; then
    . $mirror/config/defaults
  fi
done
unset mirror mirrors

              GNU_URL=${GNU_URL:-ftp://ftp.gnu.org/pub/gnu}
              KDE_URL=${KDE_URL:-ftp://ftp.kde.org/pub/kde}
             CTAN_URL=${CTAN_URL:-ftp://tug.ctan.org/tex-archive}
            GNOME_URL=${GNOME_URL:-ftp://ftp.gnome.org/pub/GNOME}
           KERNEL_URL=${KERNEL_URL:-ftp://ftp.kernel.org}
          XFREE86_URL=${XFREE86_URL:-ftp://ftp.xfree86.org/pub/XFree86}
          SORCERY_URL=${SORCERY_URL:-http://download.sourcemage.org/sorcery/}
      SOURCEFORGE_URL=${SOURCEFORGE_URL:-http://osdn.dl.sourceforge.net/sourceforge}
           APACHE_URL=${APACHE_URL:-http://www.ibiblio.org/pub/mirrors/apache}
        PERL_CPAN_URL=${PERL_CPAN_URL:-http://www.cpan.org}
               #
               # Set FURLNUM to nr. of fallback urls.
               #
FALLBACK_URL_MIRROR[0]=${FALLBACK_URL_MIRROR[0]:-http://fallback.sourcemage.org}
FALLBACK_URL_MIRROR[1]=${FALLBACK_URL_MIRROR[1]:-http://shlrm.org/sourcemage}
               FURLNUM=${#FALLBACK_URL_MIRROR[@]}

      # specify default fallback url.
      LEAPFORWARD_URL=${LEAPFORWARD_URL:=""}

 # turn this to on if you want sorcery to try and connect and disconnect
 # automatically
 INTERNET_AUTOCONNECT=${INTERNET_AUTOCONNECT:-off}
    DISCONNECT_SCRIPT=${DISCONNECT_SCRIPT:-poff}
       CONNECT_SCRIPT=${CONNECT_SCRIPT:-pon}
  INTERNET_INTERFACES=${INTERNET_INTERFACES:-"eth wlan bnep ath tr atml ppp"}

    CODEX_TARBALL_URL=${CODEX_TARBALL_URL:-http://codex.sourcemage.org}
      CODEX_RSYNC_URL=${CODEX_RSYNC_URL:-rsync://sourcemage.org::codex}
   CODEX_MANIFEST_URL=${CODEX_MANIFEST_URL:-http://codex.sourcemage.org}

            # reverse the comments below to use rsync by default
            CODEX_URL=${CODEX_URL:=$CODEX_TARBALL_URL}
           #CODEX_URL=${CODEX_URL:=$CODEX_RSYNC_URL}
