Plan 9 from Bell Labs’s /usr/web/sources/plan9/rc/bin/9fat:

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


#!/bin/rc

rfork e
part=`{ls /dev/fs/9fat /dev/sd*/9fat >[2]/dev/null}
if(~ $#part 0) {
	echo 'no 9fat partition found' >[1=2]
	exit no.9fat
}

part=$part(1)

if(! test -f /srv/dos)
	dossrv >/dev/null </dev/null >[2]/dev/null

unmount /n/9fat >/dev/null >[2]/dev/null
mount -c /srv/dos /n/9fat $part
unmount /n/9 >/dev/null >[2]/dev/null
mount -c /srv/dos /n/9 $part

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.