+2000-09-01 Jay Weber <jweber@valinux.com>
+
+ * etc/redhat/nfs.init: Added ability for rpc.mountd to default to
+ supporting version 3 of nfs if available, else it will fall back to
+ version 2 support only.
+
2000-08-30 H.J. Lu <hjl@lucon.org>
* configure.in (VERSION): Set to "0.2".
# Number of servers to be started up by default
RPCNFSDCOUNT=8
-# No NFS V3.
-RPCMOUNTDOPTS="--no-nfs-version 3"
+# Default to NFS version 3.
+RPCMOUNTDOPTS=""
# See how we were called.
case "$1" in
echo -n "Starting NFS quotas: "
daemon rpc.rquotad
echo
- echo -n "Starting NFS mountd: "
- daemon rpc.mountd $RPCMOUNTDOPTS
- echo
echo -n "Starting NFS daemon: "
daemon rpc.nfsd $RPCNFSDCOUNT
echo
+
+ # 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
touch /var/lock/subsys/nfs
;;
stop)