summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2005-01-28 16:14:23 +0000
committerFrederic Lepied <flepied@mandriva.com>2005-01-28 16:14:23 +0000
commita82a4d08d09bdcd1bbd65b825afb5b1b2f48abd8 (patch)
treebd932f36fcb84acb72de2cb3718f800cde496974
parentf980bc442c36bbcfbef118c59ed5e6ac83022aa1 (diff)
downloadindexhtml-a82a4d08d09bdcd1bbd65b825afb5b1b2f48abd8.tar
indexhtml-a82a4d08d09bdcd1bbd65b825afb5b1b2f48abd8.tar.gz
indexhtml-a82a4d08d09bdcd1bbd65b825afb5b1b2f48abd8.tar.bz2
indexhtml-a82a4d08d09bdcd1bbd65b825afb5b1b2f48abd8.tar.xz
indexhtml-a82a4d08d09bdcd1bbd65b825afb5b1b2f48abd8.zip
retrieve in backgroud
use a tar file instead of a single html file
-rwxr-xr-xupdate-indexhtml8
1 files changed, 6 insertions, 2 deletions
diff --git a/update-indexhtml b/update-indexhtml
index a42e72f..db485a3 100755
--- a/update-indexhtml
+++ b/update-indexhtml
@@ -33,16 +33,19 @@ if [ -r /etc/sysconfig/i18n ] ; then
fi
fi
+(
if [ "$1" != nonetwork ] && /sbin/ip route | grep -q default; then
URL=http://www.mandrakelinux.com/dist/10.2
if [ -r /etc/profile.d/proxy.sh ]; then
. /etc/profile.d/proxy.sh
fi
- for i in $LISTLANG en; do
+ for i in $LISTLANG; do
get $URL/index-$i.tar.bz2
lang=`echo $i | cut -b-2`
- get $URL/index-$lang.tar.bz2
+ if [ "$lang" != "$i" ]; then
+ get $URL/index-$lang.tar.bz2
+ fi
done
fi
@@ -58,5 +61,6 @@ for i in $LISTLANG en; do
fi
fi
done
+) &
# update-indexhtml ends here