summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorhjl <hjl>2000-11-09 22:16:34 +0000
committerhjl <hjl>2000-11-09 22:16:34 +0000
commitdf07daea1421c80ecf308a6daf3ab3fa7d4cfd65 (patch)
tree73fdbe507a42412c684c7c2f864e501039abde5f /etc
parentd193f2779b79780c54636d1bc1d655ba0d3c80d7 (diff)
downloadnfs-utils-df07daea1421c80ecf308a6daf3ab3fa7d4cfd65.tar.gz
nfs-utils-df07daea1421c80ecf308a6daf3ab3fa7d4cfd65.tar.xz
nfs-utils-df07daea1421c80ecf308a6daf3ab3fa7d4cfd65.zip
2000-11-09 H.J. Lu <hjl@lucon.org>
* etc/redhat/nfs.init (start): Pass --no-tcp to mountd if TCP is not supported by kernel. * support/nfs/rpcmisc.c (rpc_init): Don't set _rpcfdtype to 0. * utils/mountd/mountd.c (longopts): Add "-n/--no-tcp". (main): Set to _rpcfdtype to SOCK_DGRAM for "-n/--no-tcp". * utils/mountd/mountd.man: Updated for "-n/--no-tcp".
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