Subversion Repositories planix.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#!/bin/rc
2
# boota:
3
rfork e
4
if(! test -f /srv/dos)
5
	dossrv >/dev/null </dev/null >[2]/dev/null
6
unmount /n/a:>[2]/dev/null
7
 
8
switch($bootfile) {
9
case sd*!cdboot!*
10
	# just look for the right file.  bootfile isn''t trustworthy
11
	adisk=/dev/sd*/9fat
12
	if(! ~ $#adisk 1)
13
		adisk=$adisk(1)
14
case sd*
15
	adisk=`{echo $bootfile | sed 's#(sd..).*#/dev/\1/dos#'}
16
case fd*
17
	adisk=`{echo $bootfile | sed 's#(fd.).*#/dev/\1disk#'}
18
case *
19
	echo 'unknown bootfile '^$bootfile^'; mail 9trouble@plan9.bell-labs.com'
20
	exit oops
21
}
22
 
23
mount -c /srv/dos /n/a: $adisk