]> git.lizzy.rs Git - plan9front.git/blob - rc/bin/inst/copydist
cat: remove stupid long cast
[plan9front.git] / rc / bin / inst / copydist
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/plan9front){
9                 copydist=notdone
10                 export copydist
11                 exit
12         }
13         if(test -d /n/newfs/dist/plan9front && test -f /tmp/copydone){
14                 copydist=done
15                 export copydist
16                 exit
17         }
18 case go
19         rm -f /tmp/copydone
20         disk/mkfs -z 16372 -U -s /n/dist -d /n/newfs /sys/lib/sysconfig/proto/allproto
21         touch /tmp/copydone
22
23 case checkdone
24         if(! test -f /tmp/copydone){
25                 copydist=notdone
26                 export copydist
27         }
28 }