2010-09-22 12:18:32 +02:00
|
|
|
#!/bin/sh
|
2011-08-31 11:43:03 +02:00
|
|
|
|
|
|
|
# make sure there is no stale pid file around that prevents entropy from running
|
|
|
|
rm -f /var/run/entropy/entropy.lock
|
|
|
|
|
2010-09-22 12:18:32 +02:00
|
|
|
export FORCE_EAPI=2
|
2011-07-21 13:14:09 +02:00
|
|
|
equo update
|
|
|
|
if [ "${?}" != "0" ]; then
|
|
|
|
sleep 1200 || exit 1
|
|
|
|
equo update || exit 1
|
|
|
|
fi
|
2011-07-01 22:35:15 +02:00
|
|
|
|
|
|
|
# disable all mirrors but GARR
|
|
|
|
sed -n -e "/pkg.sabayon.org/p" -e "/garr.it/p" -e "/^branch/p" \
|
|
|
|
-e "/^product/p" -e "/^official-repository-id/p" -e "/^differential-update/p" \
|
|
|
|
-i /etc/entropy/repositories.conf
|