]> git.lizzy.rs Git - plan9front.git/blobdiff - rc/bin/inst/mainloop
/lib/rob: Just write the code.
[plan9front.git] / rc / bin / inst / mainloop
index 94d58efc44a429b58d0198b18d24323924eff3a2..7c0851a513e23ffd0a62c33f551016d06c9d78bb 100755 (executable)
@@ -1,23 +1,14 @@
 #!/bin/rc
 
-sleep 86400 &
 cd /bin/inst
-. defs
+. ./defs
 fn sigint { }
 
 coherence
 
-disks=`{ls /dev/sd*/data >[2]/dev/null | sed 's!/dev/(sd..)/data!\1!'}
-for (i in /dev/sd*/data)
-       if(test -f $i)
-               disk/fdisk -p $i>`{basename -d $i}^/ctl >[2]/dev/null
-for(i in /dev/sd*/plan9*)
-       if(test -f $i)
-               disk/prep -p $i >`{basename -d $i}^/ctl >[2]/dev/null
-
 # we run this while() here so that ctl-d won''t exit from us -- it''ll only exit main!
 # main contains a while() loop too, to avoid the hit of 
 # continually reexecing from here.
 
 while()
-       main
+       ./main