4 # desc: download or continue to download the distribution archives
8 devs=(`{cat /net/ipifc/*/status >[2]/dev/null |
9 grep -v '127\.0\.0\.1' |
15 if(~ $mountdist done){
21 if(! test -f /srv/cs) {
23 logprog ndb/cs >>/srv/log >[2=1]
24 logprog ndb/dns -r >>/srv/log >[2=1]
26 if(! test -f /net/cs) {
27 logprog mount -a /srv/cs /net
28 logprog mount -a /srv/dns /net
31 # BUG make restartable
32 echo 'Downloading distribution package...'
33 baropt='-w 145,129,445,168'
36 if(! hget -vo /n/newfs/dist/_plan9.iso.bz2 $installurl/plan9.iso.bz2 |[2] aux/statusbar $baropt 'downloading '^plan9.iso.bz2)
38 mv /n/newfs/dist/_plan9.iso.bz2 /n/newfs/dist/plan9.iso.bz2
40 echo fsys main sync >>/srv/fscons
43 echo 'The distribution is downloaded.'
46 mountmedia=(mount /srv/fossil /n/distmedia)
48 export distmediadir mountmedia distmedia
51 if(! test -f /n/newfs/dist/plan9.iso.bz2) {