#!/bin/bash # # apt-sources-update # # by travisn000 # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # myname=$(basename "$0"); export TEXTDOMAIN=apt-sources-update export TEXTDOMAINDIR="/usr/share/locale" # verbose output for debugging setverbose () { set -xv; } showhelp () { echo -e $" $myname is a utility that will download the latest PCLinuxOS apt sources.list from the main ibiblio server, verify that they have been recently synced to the ibiblio server, and test all updated repositories for download speed. Once testing is completed the user will be given a speed rated list of repositories from which they can select a default repository to use for future software needs. It is meant to be run as a regular user, and will prompt for root permisions before making any changes to the apt sources.list file. This script also requires that zenity is installed so that GUI dialogs are properly displayed. Available console options to override default behavior include:. -a, -age=