aboutsummaryrefslogtreecommitdiff
path: root/bin/vmount
blob: b39fa038a9f7855cb46c91fe43a402d98b2350a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/local/plan9/bin/rc

if(! ~ $#* 2){
	echo 'usage: vmount server mtpt' >[1=2]
	exit usage
}

server=$1
mtpt=$2

switch(`{uname}){
case Linux
	exec mount -o 'ro,timeo=100,rsize=8192,retrans=5,port=12049,mountport=12049,mountvers=3,nfsvers=3,nolock,soft,intr,udp' \
		$server:/dump $mtpt
case *
	exec vmount0 -h 00 $server $mtpt
}