]> git.ipfire.org Git - ipfire-2.x.git/blob - src/pakfire/lib/get_mirror.sh
Update:
[ipfire-2.x.git] / src / pakfire / lib / get_mirror.sh
1 ############################################################################################
2 # Version 0.1a, Copyright (C) 2006 by IPFire.org #
3 # IPFire ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen. #
4 ############################################################################################
5
6 get_mirror() {
7
8 cd $PAKHOME/cache
9
10 if [ -e $PAKHOME/cache/$SERVERS_LIST ]
11 then rm -f $PAKHOME/cache/$SERVERS_LIST
12 fi
13
14 if /usr/bin/wget -q $H_MIRROR >/dev/null 2>&1
15 then
16 cd -
17 return 0
18 else
19 cd -
20 return 1
21 fi
22
23 }
24 ################################### EOF ####################################################