blob: 103ce07c4587a9c7e8e05d57cf02912f378cff94 [file] [log] [blame]
#!/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 -t nfs -o 'ro,timeo=100,rsize=8192,retrans=5,port=2049,mountport=2049,mountvers=3,nfsvers=3,nolock,soft,intr,udp' \
$server:/dump $mtpt
case *
exec vmount0 -h 00 $server $mtpt
}