summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/nodist/nfs-server4
1 files changed, 3 insertions, 1 deletions
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