Plan 9 from Bell Labs’s /usr/web/sources/plan9/sys/lib/dist/pc/sub/boota:

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc
# boota:
rfork e
if(! test -f /srv/dos)
	dossrv >/dev/null </dev/null >[2]/dev/null
unmount /n/a:>[2]/dev/null

switch($bootfile) {
case sd*!cdboot!*
	# just look for the right file.  bootfile isn''t trustworthy
	adisk=/dev/sd*/9fat
	if(! ~ $#adisk 1)
		adisk=$adisk(1)
case sd*
	adisk=`{echo $bootfile | sed 's#(sd..).*#/dev/\1/dos#'}
case fd*
	adisk=`{echo $bootfile | sed 's#(fd.).*#/dev/\1disk#'}
case *
	echo 'unknown bootfile '^$bootfile^'; mail 9trouble@plan9.bell-labs.com'
	exit oops
}

mount -c /srv/dos /n/a: $adisk

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.