diff options
Diffstat (limited to 'etc')
| -rwxr-xr-x | etc/redhat/nfs.init | 6 |
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 |
