- uses socket connections not just 'pings'
- takes notice of server responses
- connects to servers in countries specified on the command line - or - connects to the 'local' servers defined in the script - or - connects to ALL the servers in ALL the countries
- returns either fastest server or top 3 (useful for scripts)
- returns exit codes (useful for scripts)
- can re-write itself to update the CVSup server list, obtained from the online FreeBSD Handbook
- can easily add other CVSup servers (NetBSD/OpenBSD...etc)
- % su
- # cd /usr/ports/sysutils/fastest_cvsup
- # make install clean
- # rehash
- # exit
- % fastest_cvsup -Q -r -c all
Change your /etc/make.conf or supfiles with the new mirror. In alternative pass the determined mirror at the command line when running csup.
For more options run:
- % fastest_cvsup -h
- % man fastest_cvsup
- times the FreeBSD CVSup servers in the United Kingdom, France and Germany:
% fastest_cvsup -c uk,fr,de
- times the OpenBSD and NetBSD CVSup servers:
% fastest_cvsup -c openbsd,netbsd
- shell script, finds the fastest UK FreeBSD CVSup server, then runs csup using that server:
#!/bin/shThe project's website can be found at http://fastest-cvsup.sourceforge.net/.
if SERVER=`fastest_cvsup -q -c uk`; then
csup -h $SERVER /usr/share/examples/cvsup/standard-supfile
fi
No comments:
Post a Comment