diff options
author | lon <lon> | 2001-06-07 18:00:14 +0000 |
---|---|---|
committer | lon <lon> | 2001-06-07 18:00:14 +0000 |
commit | e23ec647cb219ec875f8e56cbc2b1d8cf4a9cacf (patch) | |
tree | a4d1c316f22ee77979fe4eef4c94c2637ecda2cb | |
parent | 7c3a234b6adb8b14a60b2f682834334d668fa24e (diff) | |
download | nfs-utils-e23ec647cb219ec875f8e56cbc2b1d8cf4a9cacf.tar.gz nfs-utils-e23ec647cb219ec875f8e56cbc2b1d8cf4a9cacf.tar.xz nfs-utils-e23ec647cb219ec875f8e56cbc2b1d8cf4a9cacf.zip |
Fixes explicit path problem (since most logical directories are
specified above, we can just call rpcinfo instead of /usr/sbin/rpcinfo)
Also fixes the problem where we were disabling MNTv3 if NFSv3 _is_
present.
-rwxr-xr-x | etc/nodist/nfs-server | 4 |
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 |