Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/planix-v0/sys/lib/dist/pc/inst/mainloop – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 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