plan9fox/rc/bin/inst/copydist

29 lines
508 B
Plaintext
Raw Normal View History

#!/bin/rc
# prereq: mountdist
# desc: copy the distribution into the file system
switch($1){
case checkready
2011-04-22 00:50:41 +00:00
if(! test -f /n/dist/LICENSE){
copydist=notdone
export copydist
exit
}
2011-04-22 00:50:41 +00:00
if(test -f /n/newfs/LICENSE && test -f /tmp/copydone){
copydist=done
export copydist
exit
}
case go
2011-04-22 00:50:41 +00:00
rm -f /tmp/copydone
disk/mkfs -z 16384 -p -s /n/dist -d /n/newfs /sys/lib/sysconfig/proto/allproto
2011-04-22 00:50:41 +00:00
touch /tmp/copydone
case checkdone
2011-04-22 00:50:41 +00:00
if(! test -f /tmp/copydone){
copydist=notdone
export copydist
}
}