From owner-cvs-all Sun May 28 14:30:44 2000 Delivered-To: cvs-all@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id 604E837B719; Sun, 28 May 2000 14:30:37 -0700 (PDT) (envelope-from DougB@gorean.org) Received: from gorean.org (doug@master [10.0.0.2]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id OAA22659; Sun, 28 May 2000 14:30:08 -0700 (PDT) (envelope-from DougB@gorean.org) Message-ID: <39318FE0.604973F3@gorean.org> Date: Sun, 28 May 2000 14:30:08 -0700 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.72 [en] (X11; U; FreeBSD 5.0-CURRENT-0528 i386) X-Accept-Language: en MIME-Version: 1.0 To: Bruce Evans Cc: Jeroen Ruigrok van der Werven , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/etc rc References: Content-Type: multipart/mixed; boundary="------------1B43CFEE822369E145659DBA" Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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