diff options
-rwxr-xr-x | update-indexhtml | 8 |
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 |