Date: Sun, 28 May 2000 18:07:00 +0200 From: Martin Cracauer <cracauer@cons.org> To: Jeroen Ruigrok van der Werven <jruigrok@via-net-works.nl> Cc: Bruce Evans <bde@zeta.org.au>, cvs-committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/etc rc Message-ID: <20000528180700.A52502@cons.org> In-Reply-To: <20000528174418.A50735@lucifer.bart.nl>; from jruigrok@via-net-works.nl on Sun, May 28, 2000 at 05:44:18PM %2B0200 References: <200005281407.HAA65364@freefall.freebsd.org> <Pine.BSF.4.21.0005290132350.503-100000@besplex.bde.org> <20000528174418.A50735@lucifer.bart.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <cracauer@cons.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000528180700.A52502>
