Plan 9 from Bell Labs’s /usr/web/sources/contrib/josh/rc/mountnfs

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


#!/bin/rc

# Combine nfs(4) and mount(1) of an NFS export.

fn usage {
	echo usage: mountnfs nfshost export >[1=2]
	exit usage
}

if(! ~ $#* 2)
	usage

nfs -s nfs.^$1 -u /lib/ndb/^$1^.passwd /lib/ndb/^$1^.group $1
mount -c /srv/nfs.^$1 /n/^$1 $2

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.