Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#!/bin/rc
2
 
3
# prereq: mountdist
4
# desc: copy the distribution into the file system
5
 
6
switch($1){
7
case checkready
8
	if(! test -d /n/dist/dist/replica){
9
		copydist=notdone
10
		export copydist
11
		exit
12
	}
13
	if(test -f /n/newfs/dist/replica/didplan9){
14
		copydist=done
15
		export copydist
16
		exit
17
	}
18
case go
19
	inst/watchfd applylog 0 `{ls -l /n/dist/dist/replica/plan9.log | awk '{print $6}'} 'Installing file system' &
20
	replica/pull -c / /rc/bin/inst/replcfg
21
	if(~ $status '' *conflicts || test -f /n/newfs/dist/replica/didplan9witherrors)
22
		>/n/newfs/dist/replica/didplan9
23
	if not
24
		>/n/newfs/dist/replica/didplan9witherrors
25
 
26
case checkdone
27
	if(! test -f /n/newfs/dist/replica/didplan9){
28
		copydist=notdone
29
		export copydist
30
	}
31
}