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/feature_fixcpp/sys/lib/dist/pc/sub/F004761 – 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
# 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