2011-03-30 13:53:33 +00:00
|
|
|
#!/bin/rc
|
|
|
|
|
|
|
|
# prereq: mountdist
|
|
|
|
# desc: copy the distribution into the file system
|
|
|
|
|
|
|
|
switch($1){
|
|
|
|
case checkready
|
2011-05-03 08:53:59 +00:00
|
|
|
if(! test -d /n/dist/dist/plan9front){
|
2011-03-30 13:53:33 +00:00
|
|
|
copydist=notdone
|
|
|
|
export copydist
|
|
|
|
exit
|
|
|
|
}
|
2011-05-03 08:53:59 +00:00
|
|
|
if(test -d /n/newfs/dist/plan9front && test -f /tmp/copydone){
|
2011-03-30 13:53:33 +00:00
|
|
|
copydist=done
|
|
|
|
export copydist
|
|
|
|
exit
|
|
|
|
}
|
|
|
|
case go
|
2011-04-22 00:50:41 +00:00
|
|
|
rm -f /tmp/copydone
|
2011-04-29 09:15:28 +00:00
|
|
|
disk/mkfs -z 16372 -U -s /n/dist -d /n/newfs /sys/lib/sysconfig/proto/allproto
|
2011-04-22 00:50:41 +00:00
|
|
|
touch /tmp/copydone
|
2011-03-30 13:53:33 +00:00
|
|
|
|
|
|
|
case checkdone
|
2011-04-22 00:50:41 +00:00
|
|
|
if(! test -f /tmp/copydone){
|
2011-03-30 13:53:33 +00:00
|
|
|
copydist=notdone
|
|
|
|
export copydist
|
|
|
|
}
|
|
|
|
}
|