Subversion Repositories ALCASAR

Rev

Rev 1837 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1837 Rev 1919
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-urpmi.sh 1837 2016-04-25 12:35:28Z richard $
2
# $Id: alcasar-urpmi.sh 1919 2016-06-01 14:55:18Z franck $
3
 
3
 
4
# alcasar-urpmi.sh
4
# alcasar-urpmi.sh
5
# by 3abtux and Rexy
5
# by 3abtux and Rexy
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 67... Line 67...
67
# We prefer wget than curl
67
# We prefer wget than curl
68
urpmi --no-verify-rpm --auto conf/rpms/$ARCH/wget*.rpm
68
urpmi --no-verify-rpm --auto conf/rpms/$ARCH/wget*.rpm
69
 
69
 
70
# Set the RPM repository (if not already set)
70
# Set the RPM repository (if not already set)
71
ACTIVE_REPO=`cat /etc/urpmi/urpmi.cfg|grep "mageia.org"|wc -l`
71
ACTIVE_REPO=`cat /etc/urpmi/urpmi.cfg|grep "mageia.org"|wc -l`
72
if [ "$ACTIVE_REPO" != "2" ]
72
#if [ "$ACTIVE_REPO" != "2" ]
73
	then
73
#	then
74
	MIRROR_NBR=2
74
	MIRROR_NBR=2
75
	#                       For Europeans 
75
	#                       For Europeans 
76
	MIRRORLIST1="http://www.mirrorservice.org/sites/mageia.org/pub/mageia/distrib/$VERSION/$ARCH"
76
	MIRRORLIST1="http://www.mirrorservice.org/sites/mageia.org/pub/mageia/distrib/$VERSION/$ARCH"
77
	#                       For International install
77
	#                       For International install
78
	MIRRORLIST2="http://mirrors.mageia.org/api/mageia.$VERSION.$ARCH.list"
78
	MIRRORLIST2="http://mirrors.mageia.org/api/mageia.$VERSION.$ARCH.list"
Line 112... Line 112...
112
			then
112
			then
113
			exit 1
113
			exit 1
114
			fi
114
			fi
115
		fi
115
		fi
116
	done
116
	done
117
fi
117
#fi
118
 
118
 
119
# download the kernel used by ALCASAR and fix its version
119
# download the kernel used by ALCASAR and fix its version
120
if [ $Lang == "fr" ]
120
if [ $Lang == "fr" ]
121
then	
121
then	
122
	echo "Récupération du noyau Linux exploité par ALCASAR. Veuillez patienter ..."
122
	echo "Récupération du noyau Linux exploité par ALCASAR. Veuillez patienter ..."