From owner-cvs-all Sun May 28 9: 7:43 2000 Delivered-To: cvs-all@freebsd.org Received: from gilgamesch.bik-gmbh.de (T1-Hansenet.BIK-GmbH.de [192.76.134.246]) by hub.freebsd.org (Postfix) with ESMTP id B4FAC37BA40; Sun, 28 May 2000 09:07:28 -0700 (PDT) (envelope-from cracauer@gilgamesch.bik-gmbh.de) Received: (from cracauer@localhost) by gilgamesch.bik-gmbh.de (8.9.3/8.7.3) id SAA53240; Sun, 28 May 2000 18:07:00 +0200 (MET DST) Date: Sun, 28 May 2000 18:07:00 +0200 From: Martin Cracauer To: Jeroen Ruigrok van der Werven Cc: Bruce Evans , cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/etc rc Message-ID: <20000528180700.A52502@cons.org> References: <200005281407.HAA65364@freefall.freebsd.org> <20000528174418.A50735@lucifer.bart.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000528174418.A50735@lucifer.bart.nl>; from jruigrok@via-net-works.nl on Sun, May 28, 2000 at 05:44:18PM +0200 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In <20000528174418.A50735@lucifer.bart.nl>, Jeroen Ruigrok van der Werven wrote: > -On [20000528 17:38], Bruce Evans (bde@zeta.org.au) 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. > > Hmm. > > I haven't had problems myself with this piece of script in my set-up and > I haven't seen any problem reports publically so I assumed it was safe > enough to MFC. > > Do you have a suggestion instead on how to fix it or should I back it > out? This is a shell function looking for ":" in the first field: isnfs () { while read foo ; do ( set -- ${foo} old="$1" IFS=": " set -- ${foo} new="$1" if [ "${old}" != "${new}" ] ; then exit 0 else exit 1 fi ) && return 0 done return 1 } mount | isnfs && echo NFS drives around here Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ BSD User Group Hamburg, Germany http://www.bsdhh.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message