summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rwxr-xr-xetc/redhat/nfs.init6
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/redhat/nfs.init b/etc/redhat/nfs.init
index 5a40f4f..836d60d 100755
--- a/etc/redhat/nfs.init
+++ b/etc/redhat/nfs.init
@@ -50,6 +50,12 @@ case "$1" in
RPCMOUNTDOPTS="--no-nfs-version 3"
fi
+ # Let's see if we support NFS version 3.
+ /usr/sbin/rpcinfo -p localhost | grep nfs | grep tcp &>/dev/null
+ if [ $? -ne 0 ]; then
+ RPCMOUNTDOPTS="$RPCMOUNTDOPTS --no-tcp"
+ fi
+
echo -n "Starting NFS mountd: "
daemon rpc.mountd $RPCMOUNTDOPTS
echo