| Line 1... |
Line 1... |
| 1 |
#!/bin/sh
|
1 |
#!/bin/sh
|
| 2 |
# $Id: alcasar.sh 467 2011-01-27 22:49:25Z richard $
|
2 |
# $Id: alcasar.sh 470 2011-01-30 22:11:12Z richard $
|
| 3 |
|
3 |
|
| 4 |
# alcasar.sh
|
4 |
# alcasar.sh
|
| 5 |
# by Franck BOUIJOUX, Pascal LEVANT and Richard REY
|
5 |
# by Franck BOUIJOUX, Pascal LEVANT 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 186... |
Line 186... |
| 186 |
fi
|
186 |
fi
|
| 187 |
done
|
187 |
done
|
| 188 |
fi
|
188 |
fi
|
| 189 |
# System update
|
189 |
# System update
|
| 190 |
$DIR_SCRIPTS/alcasar-urpmi.sh
|
190 |
$DIR_SCRIPTS/alcasar-urpmi.sh
|
| - |
|
191 |
if [ "$?" != "0" ]
|
| - |
|
192 |
then
|
| - |
|
193 |
exit 0
|
| - |
|
194 |
fi
|
| 191 |
# Download of ALCASAR specifics RPM in cache (and test)
|
195 |
# Download of ALCASAR specifics RPM in cache (and test)
|
| 192 |
echo "Récupération des paquetages complémentaires. Veuillez patienter ..."
|
196 |
echo "Récupération des paquetages complémentaires. Veuillez patienter ..."
|
| 193 |
echo "Download of complementary packages. Please wait ..."
|
197 |
echo "Download of complementary packages. Please wait ..."
|
| 194 |
urpmi --auto $PACKAGES --quiet --test --retry 2
|
198 |
urpmi --auto $PACKAGES --quiet --test --retry 2
|
| 195 |
if [ "$?" != "0" ]
|
199 |
if [ "$?" != "0" ]
|
| 196 |
then
|
200 |
then
|
| 197 |
echo
|
201 |
echo
|
| 198 |
echo "Une erreur a été détectée lors de la récupération des paquetages complémentaires."
|
202 |
echo "Une erreur a été détectée lors de la récupération des paquetages complémentaires."
|
| 199 |
echo "Relancez l'installation ultérieurement."
|
203 |
echo "Relancez l'installation ultérieurement."
|
| 200 |
echo "Si vous rencontrez à nouveau ce problème, modifier la variable MIRRORLIST du fichier 'scripts/alcasar-urpmi.sh'"
|
204 |
echo "Si vous rencontrez à nouveau ce problème, modifier la variable MIRRORLIST du fichier 'scripts/alcasar-urpmi.sh'"
|
| 201 |
echo "An error occurs when downloading"
|
205 |
echo "An error occurs when downloading complementary packages"
|
| 202 |
echo "Try an other install later."
|
206 |
echo "Try an other install later."
|
| 203 |
echo "If this problem occurs again, change the MIRRORLIST variable in the file 'scripts/alcasar-urpmi.sh'"
|
207 |
echo "If this problem occurs again, change the MIRRORLIST variable in the file 'scripts/alcasar-urpmi.sh'"
|
| 204 |
exit 0
|
208 |
exit 0
|
| 205 |
fi
|
209 |
fi
|
| 206 |
# update with cached RPM
|
210 |
# update with cached RPM
|
| Line 1260... |
Line 1264... |
| 1260 |
[ -e /etc/inittab.default ] || cp /etc/inittab /etc/inittab.default
|
1264 |
[ -e /etc/inittab.default ] || cp /etc/inittab /etc/inittab.default
|
| 1261 |
# On ne garde que 3 terminaux
|
1265 |
# On ne garde que 3 terminaux
|
| 1262 |
$SED "s?^4.*?#&?g" /etc/inittab
|
1266 |
$SED "s?^4.*?#&?g" /etc/inittab
|
| 1263 |
$SED "s?^5.*?#&?g" /etc/inittab
|
1267 |
$SED "s?^5.*?#&?g" /etc/inittab
|
| 1264 |
$SED "s?^6.*?#&?g" /etc/inittab
|
1268 |
$SED "s?^6.*?#&?g" /etc/inittab
|
| - |
|
1269 |
# On limite le temps d'attente de grub (3s) et on change la résolution d'écran
|
| - |
|
1270 |
$SED "s?^timeout.*?timeout 3?g" /boot/grub/menu.lst
|
| - |
|
1271 |
$SED "s?^kernel.*?& vga=791?g" /boot/grub/menu.lst
|
| 1265 |
# dans le cas d'une mise à jour, on charge la conf d'une version précédente
|
1272 |
# dans le cas d'une mise à jour, on charge la conf d'une version précédente
|
| 1266 |
if [ "$mode" = "update" ]
|
1273 |
if [ "$mode" = "update" ]
|
| 1267 |
then
|
1274 |
then
|
| 1268 |
$DIR_DEST_BIN/alcasar-conf.sh --load
|
1275 |
$DIR_DEST_BIN/alcasar-conf.sh --load
|
| 1269 |
fi
|
1276 |
fi
|