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
if(! test -f /srv/dos)
3
	dossrv >/dev/null </dev/null >[2]/dev/null
4
unmount /n/a:>[2]/dev/null
5
 
6
if(~ $#adisk 1)
7
	;	# do nothing
8
if not if(~ $#bootfile 0)
9
	adisk=/dev/fd0disk
10
if not {
11
	switch($bootfile) {
12
	case sd*
13
		adisk=`{echo $bootfile | sed 's#(sd..).*#/dev/\1/data#'}
14
	case fd*
15
		adisk=`{echo $bootfile | sed 's#(fd.).*#/dev/\1disk#'}
16
	case *
17
		echo 'unknown bootfile '^$bootfile^'; mail 9trouble@plan9.bell-labs.com'
18
		exit oops
19
	}
20
}
21
 
22
mount -c /srv/dos /n/a: $adisk