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.
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