~mythbuntu/mythbuntu/mythbuntu-mirrorchecker

« back to all changes in this revision

Viewing changes to mythbuntu-mirrorcheck.sh

  • Committer: Thomas Mashos
  • Date: 2008-10-30 19:12:42 UTC
  • Revision ID: thomas@hermes-20081030191242-qj3iwwvv452um65g
* Saner output
* Auto read
* Update for 8.10 release (and -proper)

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 
8
8
#Mythbuntu Release
9
9
if [ -z "$RELEASE" ] ; then
10
 
    RELEASE='alpha6'
 
10
    RELEASE='rc'
11
11
fi
12
12
 
13
13
# Check http://www.mythbuntu.org/admin/build/database/table/dl_h_host/view to see if any mirrors have been added
15
15
uk.cdimages.mythbuntu.org
16
16
osuosl.cdimages.mythbuntu.org
17
17
cdimages.mythbuntu.org
18
 
mirror.internode.on.net/pub/mythbuntu/ #aus.cdimages.mythbuntu.org
 
18
mirror.internode.on.net/pub/mythbuntu #aus.cdimages.mythbuntu.org
19
19
us-ca2.cdimages.mythbuntu.org
20
20
us-ut.cdimages.mythbuntu.org
21
21
us-az.cdimages.mythbuntu.org
22
 
us-ca.cdimages.mythbuntu.org
23
22
germany.cdimages.mythbuntu.org
24
23
us-ia.cdimages.mythbuntu.org  
25
24
us-mi.cdimages.mythbuntu.org
47
46
  do
48
47
    for ARCH in ${arch[@]}
49
48
    do
50
 
      wget --append-output=output_file --spider http://$host/mythbuntu-$VERSION-$RELEASE-$disk-$ARCH.iso  # Prints each (change echo to "wget --append-output=output_file --spider" to check status)
 
49
      wget --append-output=output_file --spider http://$host/mythbuntu-$VERSION-$disk-proper-$ARCH.iso  # Prints each (change echo to "wget --append-output=output_file --spider" to check status)
51
50
    done
52
51
  done
53
52
done
54
53
 
55
 
grep -i 'HTTP' output_file >> mirror_status
56
 
 
57
 
 
 
54
grep -i 'HTTP' output_file | cut -d " " -f 4-8 | cut -f 3-5 -d " " >> mirror_status
 
55
 
 
56
gedit mirror_status