- # Do it the last so that all clients mounting points are
- # exported. FIXME: Why?
- action "Starting NFS services: " /usr/sbin/exportfs -r
+
+ # Let's see if we support NFS version 3.
+ /usr/sbin/rpcinfo -u localhost nfs 3 &>/dev/null
+ if [ $? -ne 0 ]; then
+ RPCMOUNTDOPTS="--no-nfs-version 3"
+ fi
+
+ echo -n "Starting NFS mountd: "
+ daemon rpc.mountd $RPCMOUNTDOPTS
+ echo