Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 May 2000 14:30:08 -0700
From:      Doug Barton <DougB@gorean.org>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        Jeroen Ruigrok van der Werven <asmodai@FreeBSD.ORG>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG
Subject:   Re: cvs commit: src/etc rc
Message-ID:  <39318FE0.604973F3@gorean.org>
References:  <Pine.BSF.4.21.0005290132350.503-100000@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------1B43CFEE822369E145659DBA
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Bruce Evans wrote:
> 
> >   Modified files:        (Branch: RELENG_4)
> >     etc                  rc
> >   Log:
> >   MFC:        - NFS fs mounting cleanup
> >
> >   Revision  Changes    Path
> >   1.212.2.2 +7 -5      src/etc/rc
> 
> This breaks nfs-mounted /usr's.  I complained to the submitter, but
> received no reply.
> 
> Bruce

> > To: doug@gorean.com

	I'm @gorean.org. I'd never dis' you like that Bruce. :)  You are of
course exactly correct, I don't know what I was thinking there. The
attached patch does the right thing, tested both with and without nfs
mounts in /etc/fstab. 

Doug
-- 
        "Live free or die"
		- State motto of my ancestral homeland, New Hampshire

	Do YOU Yahoo!?
--------------1B43CFEE822369E145659DBA
Content-Type: text/plain; charset=us-ascii;
 name="rc-nfs.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="rc-nfs.diff"

Index: rc
===================================================================
RCS file: /usr/ncvs/src/etc/rc,v
retrieving revision 1.216
diff -u -r1.216 rc
--- rc	2000/05/11 06:31:59	1.216
+++ rc	2000/05/28 20:40:41
@@ -202,11 +202,14 @@
 esac
 
 # Mount NFS filesystems if present in /etc/fstab
-if mount -d -a -t nfs | grep -q nfs >/dev/null 2>&1; then
+test_nfs_in_fstab=`mount -d -a -t nfs`
+case "${test_nfs_in_fstab}" in
+*mount_nfs*)
 	echo -n "Mounting NFS file systems"
 	mount -a -t nfs
 	echo .
-fi
+	;;
+esac
 
 # Whack the pty perms back into shape.
 #


--------------1B43CFEE822369E145659DBA--



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39318FE0.604973F3>