]> git.lizzy.rs Git - plan9front.git/blob - rc/bin/inst/mainloop
fix manual (book) build, add files/permissions for lp, compile postscript
[plan9front.git] / rc / bin / inst / mainloop
1 #!/bin/rc
2
3 sleep 86400 &
4 cd /bin/inst
5 . defs
6 fn sigint { }
7
8 coherence
9
10 disks=`{ls /dev/sd*/data >[2]/dev/null | sed 's!/dev/(sd..)/data!\1!'}
11 for (i in /dev/sd*/data)
12         if(test -f $i)
13                 disk/fdisk -p $i>`{basename -d $i}^/ctl >[2]/dev/null
14 for(i in /dev/sd*/plan9*)
15         if(test -f $i)
16                 disk/prep -p $i >`{basename -d $i}^/ctl >[2]/dev/null
17
18 # we run this while() here so that ctl-d won''t exit from us -- it''ll only exit main!
19 # main contains a while() loop too, to avoid the hit of 
20 # continually reexecing from here.
21
22 while()
23         main