plan9port/bin/vmount

19 lines
340 B
Text
Raw Permalink Normal View History

2005-07-13 14:05:25 +00:00
#!/usr/local/plan9/bin/rc
if(! ~ $#* 2){
echo 'usage: vmount server mtpt' >[1=2]
exit usage
}
server=$1
mtpt=$2
switch(`{uname}){
case Linux
2008-07-09 18:36:12 +00:00
exec mount -t nfs -o 'ro,timeo=100,rsize=8192,retrans=5,port=2049,mountport=2049,mountvers=3,nfsvers=3,nolock,soft,intr,udp' \
2005-07-13 14:05:25 +00:00
$server:/dump $mtpt
case *
2005-07-19 22:56:42 +00:00
exec vmount0 -h 00 $server $mtpt
2005-07-13 14:05:25 +00:00
}