plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

vmount (340B)


      1 #!/usr/local/plan9/bin/rc
      2 
      3 if(! ~ $#* 2){
      4 	echo 'usage: vmount server mtpt' >[1=2]
      5 	exit usage
      6 }
      7 
      8 server=$1
      9 mtpt=$2
     10 
     11 switch(`{uname}){
     12 case Linux
     13 	exec mount -t nfs -o 'ro,timeo=100,rsize=8192,retrans=5,port=2049,mountport=2049,mountvers=3,nfsvers=3,nolock,soft,intr,udp' \
     14 		$server:/dump $mtpt
     15 case *
     16 	exec vmount0 -h 00 $server $mtpt
     17 }
     18