X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=etc%2Fnodist%2Fnfs-server;fp=etc%2Fnodist%2Fnfs-server;h=4517937f586780be80fc95900fcd61f172cf663b;hp=65495e9f0ad9096973dafef987aa3871b2d081a9;hb=e23ec647cb219ec875f8e56cbc2b1d8cf4a9cacf;hpb=7c3a234b6adb8b14a60b2f682834334d668fa24e diff --git a/etc/nodist/nfs-server b/etc/nodist/nfs-server index 65495e9..4517937 100755 --- a/etc/nodist/nfs-server +++ b/etc/nodist/nfs-server @@ -53,7 +53,9 @@ start) echo -n "Starting $NFSD: " startdaemon $PREFIX$NFSD $RPCNFSDCOUNT - if /usr/sbin/rpcinfo -u localhost nfs 3 &>/dev/null + # Disable NFSv3 on mountd if we don't have NFSv3 + rpcinfo -u localhost nfs 3 &>/dev/null + if [ "$?" != "0" ] then RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-nfs-version 3" fi