Subversion Repositories ALCASAR

Rev

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

Rev 1350 Rev 1352
Line 1... Line 1...
1
#!/bin/bash
1
#!/bin/bash
2
# $Id: alcasar-urpmi.sh 1350 2014-05-14 16:14:43Z richard $
2
# $Id: alcasar-urpmi.sh 1352 2014-05-15 16:45:22Z richard $
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 90... Line 90...
90
	exit 1
90
	exit 1
91
fi
91
fi
92
# We prefer wget than curl
92
# We prefer wget than curl
93
urpmi --no-verify-rpm --auto conf/rpms/$ARCH/wget*.rpm
93
urpmi --no-verify-rpm --auto conf/rpms/$ARCH/wget*.rpm
94
# Set the RPM repository (if not already set)
94
# Set the RPM repository (if not already set)
95
ACTIVE_REPO=`cat /etc/urpmi/urpmi.cfg|grep key-ids|wc -l`
95
ACTIVE_REPO=`cat /etc/urpmi/urpmi.cfg|grep "mageia.org"|wc -l`
96
if [ "$ACTIVE_REPO" != "2" ]
96
if [ "$ACTIVE_REPO" != "2" ]
97
	then
97
	then
98
	MIRROR_NBR=2
98
	MIRROR_NBR=2
99
	#                       For Europeans 
99
	#                       For Europeans 
100
	MIRRORLIST1="http://www.mirrorservice.org/sites/mageia.org/pub/mageia/distrib/$VERSION/$ARCH"
100
	MIRRORLIST1="http://www.mirrorservice.org/sites/mageia.org/pub/mageia/distrib/$VERSION/$ARCH"