Subversion Repositories ALCASAR

Rev

Rev 772 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 772 Rev 793
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
# $Id: alcasar-urpmi.sh 772 2011-11-17 22:25:34Z richard $
2
# $Id: alcasar-urpmi.sh 793 2012-01-16 22:31:32Z richard $
3
 
3
 
4
# alcasar-urpmi.sh
4
# alcasar-urpmi.sh
5
# by Franck BOUIJOUX and Richard REY
5
# by Franck BOUIJOUX and Richard REY
6
# This script is distributed under the Gnu General Public License (GPL)
6
# This script is distributed under the Gnu General Public License (GPL)
7
 
7
 
Line 59... Line 59...
59
# We prefer wget than curl
59
# We prefer wget than curl
60
urpmi --no-verify-rpm --auto conf/rpms/$ARCH/wget*.rpm
60
urpmi --no-verify-rpm --auto conf/rpms/$ARCH/wget*.rpm
61
# Set the RPM repository
61
# Set the RPM repository
62
MIRROR_NBR=2
62
MIRROR_NBR=2
63
#                       For french ALCASARistes
63
#                       For french ALCASARistes
64
MIRRORLIST1="http://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/official/$VERSION/$ARCH"
64
MIRRORLIST2="http://ftp.free.fr/pub/Distributions_Linux/MandrivaLinux/official/$VERSION/$ARCH"
65
#                       For International install
65
#                       For International install
66
MIRRORLIST2="http://api.mandriva.com/mirrors/basic.$VERSION.$ARCH.list"
66
MIRRORLIST1="http://api.mandriva.com/mirrors/basic.$VERSION.$ARCH.list"
67
try_nb="0"; nb_repository="0"
67
try_nb="0"; nb_repository="0"
68
while [ "$nb_repository" != "4" ]
68
while [ "$nb_repository" != "4" ]
69
do
69
do
70
	try_nb=`expr $try_nb + 1`
70
	try_nb=`expr $try_nb + 1`
71
	MIRRORLIST="MIRRORLIST$try_nb"
71
	MIRRORLIST="MIRRORLIST$try_nb"