From owner-cvs-all Sun May 28 23:14:12 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 E12F737BA33; Sun, 28 May 2000 23:14:05 -0700 (PDT) (envelope-from DougB@yahoo-inc.com) Received: from yahoo-inc.com (doug@master [10.0.0.2]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id XAA04050; Sun, 28 May 2000 23:13:58 -0700 (PDT) (envelope-from DougB@yahoo-inc.com) Message-ID: <39320AA6.B3C70A9B@yahoo-inc.com> Date: Sun, 28 May 2000 23:13:58 -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: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bruce Evans wrote: > > On Sun, 28 May 2000, Doug Barton wrote: > > > Bruce Evans wrote: > > > > > > To: doug@gorean.com > > > > I'm @gorean.org. I'd never dis' you like that Bruce. :) You are of > > Oops. There is a gorean.com, and it seems to have blackholed the mail. Yeah, I hate when they do that. > I think this can be simplified to > > if [ "`mount -d -a -t nfs`" != "" ]; then > ... > > (since -t nfs already filters out everything that doesn't match *mount_nfs*). That's definitely cleaner, but it adds an instance of 'test' that I'd prefer were case, since case is a builtin. Also, testing for the presence of mount_nfs instead of the absence protects us against something changing in the future. Losing the temp variable is a good idea though, how about: case "`mount -d -a -t nfs`" in *mount_nfs*) echo -n "Mounting NFS file systems" mount -a -t nfs echo . ;; esac I'll reboot with that asap and let y'all know...I can't do it right now because I'm monitoring some stuff at work. Doug -- "Live free or die" - State motto of my ancestral homeland, New Hampshire Do YOU Yahoo!? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message