blob: 375b6ff84ec4a20e4d198467e71a6c5c2f6efad4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/rc
# prereq: mountdist
# desc: copy the distribution into the file system
switch($1){
case checkready
if(! test -f /n/dist/LICENSE){
copydist=notdone
export copydist
exit
}
if(test -f /n/newfs/LICENSE && test -f /tmp/copydone){
copydist=done
export copydist
exit
}
case go
rm -f /tmp/copydone
disk/mkfs -s /n/dist -d /n/newfs /sys/lib/sysconfig/proto/allproto
touch /tmp/copydone
case checkdone
if(! test -f /tmp/copydone){
copydist=notdone
export copydist
}
}
|